diff options
| author | raysan5 <raysan5@gmail.com> | 2016-02-12 19:02:23 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-02-12 19:02:23 +0100 |
| commit | cbbe9485294032d680579809976f7035785d3694 (patch) | |
| tree | 52a8a749fcd6be00f26d3ee71f7fff6ddbdd12ba /src/core.c | |
| parent | 823abf666e09e96ccbf5230c96f2d3a61ff60895 (diff) | |
| download | raylib-cbbe9485294032d680579809976f7035785d3694.tar.gz raylib-cbbe9485294032d680579809976f7035785d3694.zip | |
Some code tweaks
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -118,7 +118,6 @@ // Defines and Macros //---------------------------------------------------------------------------------- #define STORAGE_FILENAME "storage.data" -#define MAX_TOUCH_POINTS 2 //---------------------------------------------------------------------------------- // Types and Structures Definition @@ -324,6 +323,10 @@ void InitWindow(int width, int height, const char *title) emscripten_set_touchend_callback("#canvas", NULL, 1, EmscriptenInputCallback); emscripten_set_touchmove_callback("#canvas", NULL, 1, EmscriptenInputCallback); emscripten_set_touchcancel_callback("#canvas", NULL, 1, EmscriptenInputCallback); + + // TODO: Add gamepad support (not provided by GLFW3 on emscripten) + //emscripten_set_gamepadconnected_callback(NULL, 1, EmscriptenInputCallback); + //emscripten_set_gamepaddisconnected_callback(NULL, 1, EmscriptenInputCallback); #endif mousePosition.x = (float)screenWidth/2.0f; |
