aboutsummaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-02-12 19:02:23 +0100
committerraysan5 <raysan5@gmail.com>2016-02-12 19:02:23 +0100
commitcbbe9485294032d680579809976f7035785d3694 (patch)
tree52a8a749fcd6be00f26d3ee71f7fff6ddbdd12ba /src/core.c
parent823abf666e09e96ccbf5230c96f2d3a61ff60895 (diff)
downloadraylib-cbbe9485294032d680579809976f7035785d3694.tar.gz
raylib-cbbe9485294032d680579809976f7035785d3694.zip
Some code tweaks
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 413006e4..cff90ba9 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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;