diff options
| author | raysan5 <[email protected]> | 2020-12-24 13:26:30 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-12-24 13:26:30 +0100 |
| commit | 83ab2cb01746a869b625c9d84fbb4737146b73a9 (patch) | |
| tree | 010b0794848d863916e5acb4f766ea9e7ecb6e90 /examples/web/core/core_input_multitouch.c | |
| parent | d11274dcfcb0f349fba16ab4b83d2b96bcac8d1a (diff) | |
| download | raylib.com-83ab2cb01746a869b625c9d84fbb4737146b73a9.tar.gz raylib.com-83ab2cb01746a869b625c9d84fbb4737146b73a9.zip | |
Updated Web examples to raylib 3.5
Diffstat (limited to 'examples/web/core/core_input_multitouch.c')
| -rw-r--r-- | examples/web/core/core_input_multitouch.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/web/core/core_input_multitouch.c b/examples/web/core/core_input_multitouch.c index 915ef0b..0edf5af 100644 --- a/examples/web/core/core_input_multitouch.c +++ b/examples/web/core/core_input_multitouch.c @@ -13,6 +13,8 @@ #include "raylib.h" +#define MAX_TOUCH_POINTS 10 + #if defined(PLATFORM_WEB) #include <emscripten/emscripten.h> #endif @@ -46,7 +48,7 @@ int main(void) InitWindow(screenWidth, screenHeight, "raylib [core] example - input multitouch"); #if defined(PLATFORM_WEB) - emscripten_set_main_loop(UpdateDrawFrame, 0, 1); + emscripten_set_main_loop(UpdateDrawFrame, 60, 1); #else SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- @@ -103,7 +105,7 @@ void UpdateDrawFrame(void) { // Draw circle and touch index number DrawCircleV(touchPosition, 34, ORANGE); - DrawText(FormatText("%d", i), touchPosition.x - 10, touchPosition.y - 70, 40, BLACK); + DrawText(TextFormat("%d", i), touchPosition.x - 10, touchPosition.y - 70, 40, BLACK); } } |
