Pārlūkot izejas kodu

Updated gestures example

pull/109/head
raysan5 pirms 9 gadiem
vecāks
revīzija
c8a30b262d
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      examples/core_gestures_detection.c

+ 3
- 1
examples/core_gestures_detection.c Parādīt failu

@ -34,7 +34,7 @@ int main()
//SetGesturesEnabled(0b0000000000001001); // Enable only some gestures to be detected
SetTargetFPS(30);
SetTargetFPS(60);
//--------------------------------------------------------------------------------------
// Main game loop
@ -62,6 +62,8 @@ int main()
case GESTURE_SWIPE_LEFT: strcpy(gestureStrings[gesturesCount], "GESTURE SWIPE LEFT"); break;
case GESTURE_SWIPE_UP: strcpy(gestureStrings[gesturesCount], "GESTURE SWIPE UP"); break;
case GESTURE_SWIPE_DOWN: strcpy(gestureStrings[gesturesCount], "GESTURE SWIPE DOWN"); break;
case GESTURE_PINCH_IN: strcpy(gestureStrings[gesturesCount], "GESTURE PINCH IN"); break;
case GESTURE_PINCH_OUT: strcpy(gestureStrings[gesturesCount], "GESTURE PINCH OUT"); break;
default: break;
}

Notiek ielāde…
Atcelt
Saglabāt