src/video/emscripten/SDL_emscriptenevents.c
changeset 11002 ba0ce5b958d2
parent 10976 1da5502cf8ea
child 11003 ced20e690a19
     1.1 --- a/src/video/emscripten/SDL_emscriptenevents.c	Fri May 12 23:01:04 2017 +0200
     1.2 +++ b/src/video/emscripten/SDL_emscriptenevents.c	Fri May 12 23:01:17 2017 +0200
     1.3 @@ -270,7 +270,7 @@
     1.4  
     1.5  
     1.6  /* "borrowed" from SDL_windowsevents.c */
     1.7 -int
     1.8 +static int
     1.9  Emscripten_ConvertUTF32toUTF8(Uint32 codepoint, char * text)
    1.10  {
    1.11      if (codepoint <= 0x7F) {
    1.12 @@ -307,7 +307,7 @@
    1.13  }
    1.14  
    1.15  
    1.16 -EM_BOOL
    1.17 +static EM_BOOL
    1.18  Emscripten_HandleMouseMove(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
    1.19  {
    1.20      SDL_WindowData *window_data = userData;
    1.21 @@ -338,7 +338,7 @@
    1.22      return 0;
    1.23  }
    1.24  
    1.25 -EM_BOOL
    1.26 +static EM_BOOL
    1.27  Emscripten_HandleMouseButton(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
    1.28  {
    1.29      SDL_WindowData *window_data = userData;
    1.30 @@ -374,7 +374,7 @@
    1.31      return SDL_GetEventState(sdl_event_type) == SDL_ENABLE;
    1.32  }
    1.33  
    1.34 -EM_BOOL
    1.35 +static EM_BOOL
    1.36  Emscripten_HandleMouseFocus(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
    1.37  {
    1.38      SDL_WindowData *window_data = userData;
    1.39 @@ -396,7 +396,7 @@
    1.40      return SDL_GetEventState(SDL_WINDOWEVENT) == SDL_ENABLE;
    1.41  }
    1.42  
    1.43 -EM_BOOL
    1.44 +static EM_BOOL
    1.45  Emscripten_HandleWheel(int eventType, const EmscriptenWheelEvent *wheelEvent, void *userData)
    1.46  {
    1.47      SDL_WindowData *window_data = userData;
    1.48 @@ -404,7 +404,7 @@
    1.49      return SDL_GetEventState(SDL_MOUSEWHEEL) == SDL_ENABLE;
    1.50  }
    1.51  
    1.52 -EM_BOOL
    1.53 +static EM_BOOL
    1.54  Emscripten_HandleFocus(int eventType, const EmscriptenFocusEvent *wheelEvent, void *userData)
    1.55  {
    1.56      SDL_WindowData *window_data = userData;
    1.57 @@ -419,7 +419,7 @@
    1.58      return SDL_GetEventState(SDL_WINDOWEVENT) == SDL_ENABLE;
    1.59  }
    1.60  
    1.61 -EM_BOOL
    1.62 +static EM_BOOL
    1.63  Emscripten_HandleTouch(int eventType, const EmscriptenTouchEvent *touchEvent, void *userData)
    1.64  {
    1.65      SDL_WindowData *window_data = userData;
    1.66 @@ -482,7 +482,7 @@
    1.67      return preventDefault;
    1.68  }
    1.69  
    1.70 -EM_BOOL
    1.71 +static EM_BOOL
    1.72  Emscripten_HandleKey(int eventType, const EmscriptenKeyboardEvent *keyEvent, void *userData)
    1.73  {
    1.74      Uint32 scancode;
    1.75 @@ -524,7 +524,7 @@
    1.76      return prevent_default;
    1.77  }
    1.78  
    1.79 -EM_BOOL
    1.80 +static EM_BOOL
    1.81  Emscripten_HandleKeyPress(int eventType, const EmscriptenKeyboardEvent *keyEvent, void *userData)
    1.82  {
    1.83      char text[5];
    1.84 @@ -534,7 +534,7 @@
    1.85      return SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE;
    1.86  }
    1.87  
    1.88 -EM_BOOL
    1.89 +static EM_BOOL
    1.90  Emscripten_HandleFullscreenChange(int eventType, const EmscriptenFullscreenChangeEvent *fullscreenChangeEvent, void *userData)
    1.91  {
    1.92      SDL_WindowData *window_data = userData;
    1.93 @@ -555,7 +555,7 @@
    1.94      return 0;
    1.95  }
    1.96  
    1.97 -EM_BOOL
    1.98 +static EM_BOOL
    1.99  Emscripten_HandleResize(int eventType, const EmscriptenUiEvent *uiEvent, void *userData)
   1.100  {
   1.101      SDL_WindowData *window_data = userData;
   1.102 @@ -607,7 +607,7 @@
   1.103      return 0;
   1.104  }
   1.105  
   1.106 -EM_BOOL
   1.107 +static EM_BOOL
   1.108  Emscripten_HandleVisibilityChange(int eventType, const EmscriptenVisibilityChangeEvent *visEvent, void *userData)
   1.109  {
   1.110      SDL_WindowData *window_data = userData;