src/video/emscripten/SDL_emscriptenevents.c
changeset 9352 2cbf791a601c
parent 9278 8900afb78a19
child 9377 4c29dc2baaa8
     1.1 --- a/src/video/emscripten/SDL_emscriptenevents.c	Sun Feb 15 12:11:44 2015 -0500
     1.2 +++ b/src/video/emscripten/SDL_emscriptenevents.c	Sun Feb 15 21:44:36 2015 +0100
     1.3 @@ -296,7 +296,7 @@
     1.4      return SDL_TRUE;
     1.5  }
     1.6  
     1.7 -int
     1.8 +EM_BOOL
     1.9  Emscripten_HandleMouseMove(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
    1.10  {
    1.11      SDL_WindowData *window_data = userData;
    1.12 @@ -322,7 +322,7 @@
    1.13      return 0;
    1.14  }
    1.15  
    1.16 -int
    1.17 +EM_BOOL
    1.18  Emscripten_HandleMouseButton(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
    1.19  {
    1.20      SDL_WindowData *window_data = userData;
    1.21 @@ -344,7 +344,7 @@
    1.22      return 1;
    1.23  }
    1.24  
    1.25 -int
    1.26 +EM_BOOL
    1.27  Emscripten_HandleMouseFocus(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
    1.28  {
    1.29      SDL_WindowData *window_data = userData;
    1.30 @@ -352,7 +352,7 @@
    1.31      return 1;
    1.32  }
    1.33  
    1.34 -int
    1.35 +EM_BOOL
    1.36  Emscripten_HandleWheel(int eventType, const EmscriptenWheelEvent *wheelEvent, void *userData)
    1.37  {
    1.38      SDL_WindowData *window_data = userData;
    1.39 @@ -360,7 +360,7 @@
    1.40      return 1;
    1.41  }
    1.42  
    1.43 -int
    1.44 +EM_BOOL
    1.45  Emscripten_HandleFocus(int eventType, const EmscriptenFocusEvent *wheelEvent, void *userData)
    1.46  {
    1.47      SDL_WindowData *window_data = userData;
    1.48 @@ -368,7 +368,7 @@
    1.49      return 1;
    1.50  }
    1.51  
    1.52 -int
    1.53 +EM_BOOL
    1.54  Emscripten_HandleTouch(int eventType, const EmscriptenTouchEvent *touchEvent, void *userData)
    1.55  {
    1.56      /*SDL_WindowData *window_data = userData;*/
    1.57 @@ -404,7 +404,7 @@
    1.58      return 1;
    1.59  }
    1.60  
    1.61 -int
    1.62 +EM_BOOL
    1.63  Emscripten_HandleKey(int eventType, const EmscriptenKeyboardEvent *keyEvent, void *userData)
    1.64  {
    1.65      Uint32 scancode;
    1.66 @@ -443,7 +443,7 @@
    1.67              || keyEvent->keyCode == 8 /* backspace */ || keyEvent->keyCode == 9 /* tab */;
    1.68  }
    1.69  
    1.70 -int
    1.71 +EM_BOOL
    1.72  Emscripten_HandleKeyPress(int eventType, const EmscriptenKeyboardEvent *keyEvent, void *userData)
    1.73  {
    1.74      char text[5];
    1.75 @@ -452,7 +452,7 @@
    1.76      return 1;
    1.77  }
    1.78  
    1.79 -int
    1.80 +EM_BOOL
    1.81  Emscripten_HandleFullscreenChange(int eventType, const EmscriptenFullscreenChangeEvent *fullscreenChangeEvent, void *userData)
    1.82  {
    1.83      /*make sure this is actually our element going fullscreen*/
    1.84 @@ -514,7 +514,7 @@
    1.85      return 0;
    1.86  }
    1.87  
    1.88 -int
    1.89 +EM_BOOL
    1.90  Emscripten_HandleResize(int eventType, const EmscriptenUiEvent *uiEvent, void *userData)
    1.91  {
    1.92      SDL_WindowData *window_data = userData;
    1.93 @@ -554,7 +554,7 @@
    1.94      return 0;
    1.95  }
    1.96  
    1.97 -int
    1.98 +EM_BOOL
    1.99  Emscripten_HandleVisibilityChange(int eventType, const EmscriptenVisibilityChangeEvent *visEvent, void *userData)
   1.100  {
   1.101      SDL_WindowData *window_data = userData;