src/main/haiku/SDL_BApp.h
changeset 12082 09999a0e8f9a
parent 11811 5d94cb6b24d3
child 12201 8bdc4d340419
equal deleted inserted replaced
12081:277e57c09ff4 12082:09999a0e8f9a
   229         }
   229         }
   230         win = GetSDLWindow(winID);
   230         win = GetSDLWindow(winID);
   231         SDL_SendMouseMotion(win, 0, 0, x, y);
   231         SDL_SendMouseMotion(win, 0, 0, x, y);
   232 
   232 
   233         /* Tell the application that the mouse passed over, redraw needed */
   233         /* Tell the application that the mouse passed over, redraw needed */
   234         BE_UpdateWindowFramebuffer(NULL,win,NULL,-1);
   234         HAIKU_UpdateWindowFramebuffer(NULL,win,NULL,-1);
   235     }
   235     }
   236 
   236 
   237     void _HandleMouseButton(BMessage *msg) {
   237     void _HandleMouseButton(BMessage *msg) {
   238         SDL_Window *win;
   238         SDL_Window *win;
   239         int32 winID;
   239         int32 winID;
   272         ) {
   272         ) {
   273             return;
   273             return;
   274         }
   274         }
   275 
   275 
   276         /* Make sure this isn't a repeated event (key pressed and held) */
   276         /* Make sure this isn't a repeated event (key pressed and held) */
   277         if(state == SDL_PRESSED && BE_GetKeyState(scancode) == SDL_PRESSED) {
   277         if(state == SDL_PRESSED && HAIKU_GetKeyState(scancode) == SDL_PRESSED) {
   278             return;
   278             return;
   279         }
   279         }
   280         BE_SetKeyState(scancode, state);
   280         HAIKU_SetKeyState(scancode, state);
   281         SDL_SendKeyboardKey(state, BE_GetScancodeFromBeKey(scancode));
   281         SDL_SendKeyboardKey(state, HAIKU_GetScancodeFromBeKey(scancode));
   282         
   282         
   283         if (state == SDL_PRESSED && SDL_EventState(SDL_TEXTINPUT, SDL_QUERY)) {
   283         if (state == SDL_PRESSED && SDL_EventState(SDL_TEXTINPUT, SDL_QUERY)) {
   284             const int8 *keyUtf8;
   284             const int8 *keyUtf8;
   285             ssize_t count;
   285             ssize_t count;
   286             if (msg->FindData("key-utf8", B_INT8_TYPE, (const void**)&keyUtf8, &count) == B_OK) {
   286             if (msg->FindData("key-utf8", B_INT8_TYPE, (const void**)&keyUtf8, &count) == B_OK) {