Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock BindKey(key) {
- switch(key) {
- case 'action', 'ACTION': KEY_ACTION;
- case 'crouch', 'CROUCH': KEY_CROUCH;
- case 'fire', 'FIRE': KEY_FIRE;
- case 'sprint', 'SPRINT': KEY_SPRINT;
- case 'attack', 'ATTACK': KEY_SECONDARY_ATTACK;
- case 'jump', 'JUMP': KEY_JUMP;
- case 'lookr', 'LOOKR': KEY_LOOK_RIGHT;
- case 'lookl', 'LOOKL': KEY_LOOK_LEFT;
- case 'lookb', 'LOOKB': KEY_LOOK_BEHIND;
- case 'handbrake', 'HANDBRAKE': KEY_HANDBRAKE;
- case 'submission', 'SUBMISSION': KEY_SUBMISSION;
- case 'walk', 'WALK': KEY_WALK;
- case 'aup', 'AUP': KEY_ANALOG_UP;
- case 'adown', 'ADOWN': KEY_ANALOG_DOWN;
- case 'aleft', 'ALEFT': KEY_ANALOG_LEFT;
- case 'aright', 'ARIGHT': KEY_ANALOG_RIGHT;
- case 'yes', 'YES': KEY_YES;
- case 'no', 'NO': KEY_NO;
- case 'ctrlback', 'CTRLBACK': KEY_CTRL_BACK;
- case 'up', 'UP': KEY_UP;
- case 'down', 'DOWN': KEY_DOWN;
- case 'left', 'LEFT': KEY_LEFT;
- case 'right', 'RIGHT': KEY_RIGHT;
- default: printf(key);
- }
- return key;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement