下面是引用 zxzx45248 于 2014-07-10 00:53 发表的 :
感谢大大提点,我会试着用按键的写法判定蹲下与否的,谢谢 !
问个傻问题...
右键攻击的指令 +attack2 → IN_ATTACK2
蹲下的指令 +duck 那么不知道有没有 IN_DUCK ?
Button Constants
#define IN_ATTACK (1<<0)
#define IN_JUMP (1<<1)
#define IN_DUCK (1<<2)
#define IN_FORWARD (1<<3)
#define IN_BACK (1<<4)
#define IN_USE (1<<5)
#define IN_CANCEL (1<<6)
#define IN_LEFT (1<<7)
#define IN_RIGHT (1<<8)
#define IN_MOVELEFT (1<<9)
#define IN_MOVERIGHT (1<<10)
#define IN_ATTACK2 (1<<11)
#define IN_RUN (1<<12)
#define IN_RELOAD (1<<13)
#define IN_ALT1 (1<<14)
#define IN_SCORE (1<<15)
蹲下是 IN_DUCK