Created
May 31, 2015 15:54
-
-
Save shonumi/a4725247ebaa3c6d9a7b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original... | |
// If analog input is beyond dead zone, set it | |
if (CheckDeadZone(val)) { | |
controller.pad_state.hex |= KeyMap::GetPadKey({pad_id, joypad_id}).hex; | |
} else { | |
controller.pad_state.hex &= ~KeyMap::GetPadKey({pad_id, joypad_id}).hex; | |
} | |
VS... | |
// If analog input is beyond dead zone, set it | |
if (CheckDeadZone(val)) { | |
controller.pad_state.hex |= KeyMap::GetPadKey({pad_id, joypad_id}).hex; | |
} else controller.pad_state.hex &= ~KeyMap::GetPadKey({pad_id, joypad_id}).hex; | |
Is the above^ the preferred style? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment