24 #include <InterfaceKit.h>
26 #include <OpenGLKit.h>
29 #include "../../video/haiku/SDL_bkeyboard.h"
36 #include "../../SDL_internal.h"
41 #include "../../events/SDL_events_c.h"
42 #include "../../video/haiku/SDL_bframebuffer.h"
84 BApplication(signature) {
99 switch ( message->what ) {
225 msg->FindInt32(
"x", &x) != B_OK ||
226 msg->FindInt32(
"y", &
y) != B_OK
243 msg->FindInt32(
"button-id", &button) != B_OK ||
244 msg->FindInt32(
"button-state", &state) != B_OK
255 int32 xTicks, yTicks;
258 msg->FindInt32(
"xticks", &xTicks) != B_OK ||
259 msg->FindInt32(
"yticks", &yTicks) != B_OK
268 int32 scancode,
state;
270 msg->FindInt32(
"key-state", &state) != B_OK ||
271 msg->FindInt32(
"key-scancode", &scancode) != B_OK
286 if (msg->FindData(
"key-utf8", B_INT8_TYPE, (
const void**)&keyUtf8, &count) == B_OK) {
301 msg->FindBool(
"focusGained", &bSetFocus) != B_OK
320 msg->FindBool(
"focusGained", &bSetFocus) != B_OK
340 msg->FindInt32(
"window-x", &xPos) != B_OK ||
341 msg->FindInt32(
"window-y", &yPos) != B_OK
356 msg->FindInt32(
"window-w", &w) != B_OK ||
357 msg->FindInt32(
"window-h", &h) != B_OK
366 return msg->FindInt32(
"window-id", winID) == B_OK;