Created
May 30, 2014 21:10
-
-
Save PGGB/f896a0d6200c7960bb37 to your computer and use it in GitHub Desktop.
This file contains 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
- (oneway void)didMovePSXJoystickDirection:(OEPSXButton)button withValue:(CGFloat)value forPlayer:(NSUInteger)player | |
{ | |
int analogNumber = PSXMap[button] - 17; | |
uint8_t *buf = (uint8_t *)inputBuffer[player-1]; | |
buf[3 + analogNumber] = 32767 * value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment