-
- if ((j_evt.type & JS_EVENT_BUTTON) == JS_EVENT_BUTTON) {
- if (j_evt.value)
- {
- m_buttons |= (1 << j_evt.number);
- jwx_event.SetEventType(wxEVT_JOY_BUTTON_DOWN);
- }
- else
- {
- m_buttons &= ~(1 << j_evt.number);
- jwx_event.SetEventType(wxEVT_JOY_BUTTON_UP);
- }
-
- jwx_event.SetButtonChange(j_evt.number);
- }
-
- jwx_event.SetTimestamp(j_evt.time);
- jwx_event.SetJoystick(m_joystick);
- jwx_event.SetButtonState(m_buttons);
- jwx_event.SetPosition(m_lastposition);
- jwx_event.SetZPosition(m_axe[3]);
- jwx_event.SetEventObject(m_catchwin);