Fix coding convention
This commit is contained in:
parent
f8112c3486
commit
e35ac61aff
|
|
@ -1184,19 +1184,22 @@ void PollInputEvents(void)
|
||||||
|
|
||||||
// Check touch events
|
// Check touch events
|
||||||
// NOTE: These cases need to be reviewed on a real touch screen
|
// NOTE: These cases need to be reviewed on a real touch screen
|
||||||
case SDL_FINGERDOWN: {
|
case SDL_FINGERDOWN:
|
||||||
|
{
|
||||||
CORE.Input.Touch.currentTouchState[event.tfinger.fingerId] = 1;
|
CORE.Input.Touch.currentTouchState[event.tfinger.fingerId] = 1;
|
||||||
|
|
||||||
touchAction = 1;
|
touchAction = 1;
|
||||||
gestureUpdate = true;
|
gestureUpdate = true;
|
||||||
} break;
|
} break;
|
||||||
case SDL_FINGERUP: {
|
case SDL_FINGERUP:
|
||||||
|
{
|
||||||
CORE.Input.Touch.currentTouchState[event.tfinger.fingerId] = 0;
|
CORE.Input.Touch.currentTouchState[event.tfinger.fingerId] = 0;
|
||||||
|
|
||||||
touchAction = 0;
|
touchAction = 0;
|
||||||
gestureUpdate = true;
|
gestureUpdate = true;
|
||||||
} break;
|
} break;
|
||||||
case SDL_FINGERMOTION: {
|
case SDL_FINGERMOTION:
|
||||||
|
{
|
||||||
CORE.Input.Touch.position[event.tfinger.fingerId].x = (float)event.motion.x;
|
CORE.Input.Touch.position[event.tfinger.fingerId].x = (float)event.motion.x;
|
||||||
CORE.Input.Touch.position[event.tfinger.fingerId].y = (float)event.motion.y;
|
CORE.Input.Touch.position[event.tfinger.fingerId].y = (float)event.motion.y;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user