瀏覽代碼

Updated gestures example

pull/109/head
raysan5 9 年之前
父節點
當前提交
c8a30b262d
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      examples/core_gestures_detection.c

+ 3
- 1
examples/core_gestures_detection.c 查看文件

@ -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;
}

Loading…
取消
儲存