24 #include <InterfaceKit.h> 25 #include <OpenGLKit.h> 27 #include "../../video/haiku/SDL_bkeyboard.h" 34 #include "../../SDL_internal.h" 39 #include "../../events/SDL_events_c.h" 40 #include "../../video/haiku/SDL_bkeyboard.h" 41 #include "../../video/haiku/SDL_bframebuffer.h" 83 BApplication(signature) {
96 switch ( message->what ) {
158 BApplication::MessageReceived(message);
218 msg->FindInt32(
"x", &x) != B_OK ||
219 msg->FindInt32(
"y", &
y) != B_OK
236 msg->FindInt32(
"button-id", &button) != B_OK ||
237 msg->FindInt32(
"button-state", &state) != B_OK
248 int32 xTicks, yTicks;
251 msg->FindInt32(
"xticks", &xTicks) != B_OK ||
252 msg->FindInt32(
"yticks", &yTicks) != B_OK
261 int32 scancode,
state;
263 msg->FindInt32(
"key-state", &state) != B_OK ||
264 msg->FindInt32(
"key-scancode", &scancode) != B_OK
283 msg->FindBool(
"focusGained", &bSetFocus) != B_OK
302 msg->FindBool(
"focusGained", &bSetFocus) != B_OK
322 msg->FindInt32(
"window-x", &xPos) != B_OK ||
323 msg->FindInt32(
"window-y", &yPos) != B_OK
338 msg->FindInt32(
"window-w", &w) != B_OK ||
339 msg->FindInt32(
"window-h", &h) != B_OK
348 return msg->FindInt32(
"window-id", winID) == B_OK;
bool _GetWinID(BMessage *msg, int32 *winID)
void _HandleMouseButton(BMessage *msg)
void SDL_SetKeyboardFocus(SDL_Window *window)
virtual void MessageReceived(BMessage *message)
GLuint GLsizei const GLchar * message
void _HandleWindowMoved(BMessage *msg)
GLint GLint GLint GLint GLint x
void BE_SetKeyState(int32 bkey, int8 state)
int SDL_SendWindowEvent(SDL_Window *window, Uint8 windowevent, int data1, int data2)
void SDL_SetMouseFocus(SDL_Window *window)
#define SDL_GetKeyboardFocus
void _HandleKeyboardFocus(BMessage *msg)
int32 _GetNumWindowSlots()
int SDL_SendKeyboardKey(Uint8 state, SDL_Scancode scancode)
void _HandleMouseFocus(BMessage *msg)
void SetCurrentContext(BGLView *newContext)
void _SetSDLWindow(SDL_Window *win, int32 winID)
void _HandleMouseMove(BMessage *msg)
std::vector< SDL_Window * > _window_map
GLint GLint GLint GLint GLint GLint y
int SDL_SendMouseMotion(SDL_Window *window, SDL_MouseID mouseID, int relative, int x, int y)
SDL_BApp(const char *signature)
SDL_Scancode BE_GetScancodeFromBeKey(int32 bkey)
void _HandleKey(BMessage *msg)
int8 BE_GetKeyState(int32 bkey)
int BE_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
SDL_Window * GetSDLWindow(int32 winID)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
int32 GetID(SDL_Window *win)
void _PushBackWindow(SDL_Window *win)
#define SDL_GetMouseFocus
void ClearID(SDL_BWin *bwin)
The type used to identify a window.
display_mode * _saved_mode
void _HandleBasicWindowEvent(BMessage *msg, int32 sdlEventType)
int SDL_SendMouseWheel(SDL_Window *window, SDL_MouseID mouseID, int x, int y, SDL_MouseWheelDirection direction)
GLubyte GLubyte GLubyte GLubyte w
int SDL_SendMouseButton(SDL_Window *window, SDL_MouseID mouseID, Uint8 state, Uint8 button)
GLfloat GLfloat GLfloat GLfloat h
void _HandleWindowResized(BMessage *msg)
BGLView * _current_context
void _HandleMouseWheel(BMessage *msg)