mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-09 13:45:23 -04:00
Controller Macros Update (#852)
* macros * Format, I will remember 1 day
This commit is contained in:
+4
-4
@@ -111,10 +111,10 @@
|
||||
#define CAPACITY(upg, value) gUpgradeCapacities[upg][value]
|
||||
#define CUR_CAPACITY(upg) CAPACITY(upg, CUR_UPG_VALUE(upg))
|
||||
|
||||
#define CONTROLLER1(globalCtx) (&(globalCtx)->state.input[0])
|
||||
#define CONTROLLER2(globalCtx) (&(globalCtx)->state.input[1])
|
||||
#define CONTROLLER3(globalCtx) (&(globalCtx)->state.input[2])
|
||||
#define CONTROLLER4(globalCtx) (&(globalCtx)->state.input[3])
|
||||
#define CONTROLLER1(gameState) (&(gameState)->input[0])
|
||||
#define CONTROLLER2(gameState) (&(gameState)->input[1])
|
||||
#define CONTROLLER3(gameState) (&(gameState)->input[2])
|
||||
#define CONTROLLER4(gameState) (&(gameState)->input[3])
|
||||
|
||||
#define CHECK_BTN_ALL(state, combo) (~((state) | ~(combo)) == 0)
|
||||
#define CHECK_BTN_ANY(state, combo) (((state) & (combo)) != 0)
|
||||
|
||||
Reference in New Issue
Block a user