src/main/haiku/SDL_BApp.h
changeset 12082 09999a0e8f9a
parent 11811 5d94cb6b24d3
child 12201 8bdc4d340419
     1.1 --- a/src/main/haiku/SDL_BApp.h	Tue Aug 07 17:28:07 2018 -0400
     1.2 +++ b/src/main/haiku/SDL_BApp.h	Tue Aug 07 18:07:11 2018 -0400
     1.3 @@ -231,7 +231,7 @@
     1.4          SDL_SendMouseMotion(win, 0, 0, x, y);
     1.5  
     1.6          /* Tell the application that the mouse passed over, redraw needed */
     1.7 -        BE_UpdateWindowFramebuffer(NULL,win,NULL,-1);
     1.8 +        HAIKU_UpdateWindowFramebuffer(NULL,win,NULL,-1);
     1.9      }
    1.10  
    1.11      void _HandleMouseButton(BMessage *msg) {
    1.12 @@ -274,11 +274,11 @@
    1.13          }
    1.14  
    1.15          /* Make sure this isn't a repeated event (key pressed and held) */
    1.16 -        if(state == SDL_PRESSED && BE_GetKeyState(scancode) == SDL_PRESSED) {
    1.17 +        if(state == SDL_PRESSED && HAIKU_GetKeyState(scancode) == SDL_PRESSED) {
    1.18              return;
    1.19          }
    1.20 -        BE_SetKeyState(scancode, state);
    1.21 -        SDL_SendKeyboardKey(state, BE_GetScancodeFromBeKey(scancode));
    1.22 +        HAIKU_SetKeyState(scancode, state);
    1.23 +        SDL_SendKeyboardKey(state, HAIKU_GetScancodeFromBeKey(scancode));
    1.24          
    1.25          if (state == SDL_PRESSED && SDL_EventState(SDL_TEXTINPUT, SDL_QUERY)) {
    1.26              const int8 *keyUtf8;