Lines Matching refs:msg
212 void _HandleBasicWindowEvent(BMessage *msg, int32 sdlEventType) { in _HandleBasicWindowEvent() argument
216 !_GetWinID(msg, &winID) in _HandleBasicWindowEvent()
224 void _HandleMouseMove(BMessage *msg) { in _HandleMouseMove() argument
229 !_GetWinID(msg, &winID) || in _HandleMouseMove()
230 msg->FindInt32("x", &x) != B_OK || /* x movement */ in _HandleMouseMove()
231 msg->FindInt32("y", &y) != B_OK /* y movement */ in _HandleMouseMove()
258 void _HandleMouseButton(BMessage *msg) { in _HandleMouseButton() argument
263 !_GetWinID(msg, &winID) || in _HandleMouseButton()
264 msg->FindInt32("button-id", &button) != B_OK || in _HandleMouseButton()
265 msg->FindInt32("button-state", &state) != B_OK in _HandleMouseButton()
273 void _HandleMouseWheel(BMessage *msg) { in _HandleMouseWheel() argument
278 !_GetWinID(msg, &winID) || in _HandleMouseWheel()
279 msg->FindInt32("xticks", &xTicks) != B_OK || in _HandleMouseWheel()
280 msg->FindInt32("yticks", &yTicks) != B_OK in _HandleMouseWheel()
288 void _HandleKey(BMessage *msg) { in _HandleKey() argument
291 msg->FindInt32("key-state", &state) != B_OK || in _HandleKey()
292 msg->FindInt32("key-scancode", &scancode) != B_OK in _HandleKey()
307 if (msg->FindData("key-utf8", B_INT8_TYPE, (const void**)&keyUtf8, &count) == B_OK) { in _HandleKey()
316 void _HandleMouseFocus(BMessage *msg) { in _HandleMouseFocus() argument
321 !_GetWinID(msg, &winID) || in _HandleMouseFocus()
322 msg->FindBool("focusGained", &bSetFocus) != B_OK in _HandleMouseFocus()
335 void _HandleKeyboardFocus(BMessage *msg) { in _HandleKeyboardFocus() argument
340 !_GetWinID(msg, &winID) || in _HandleKeyboardFocus()
341 msg->FindBool("focusGained", &bSetFocus) != B_OK in _HandleKeyboardFocus()
354 void _HandleWindowMoved(BMessage *msg) { in _HandleWindowMoved() argument
360 !_GetWinID(msg, &winID) || in _HandleWindowMoved()
361 msg->FindInt32("window-x", &xPos) != B_OK || in _HandleWindowMoved()
362 msg->FindInt32("window-y", &yPos) != B_OK in _HandleWindowMoved()
370 void _HandleWindowResized(BMessage *msg) { in _HandleWindowResized() argument
376 !_GetWinID(msg, &winID) || in _HandleWindowResized()
377 msg->FindInt32("window-w", &w) != B_OK || in _HandleWindowResized()
378 msg->FindInt32("window-h", &h) != B_OK in _HandleWindowResized()
386 bool _GetWinID(BMessage *msg, int32 *winID) { in _GetWinID() argument
387 return msg->FindInt32("window-id", winID) == B_OK; in _GetWinID()