|
muteki
|
Structure for low level UI events (Prime G1 extension). More...
#include <common.h>
Data Fields | ||
| ui_component_t * | recipient | |
| Event recipient. | ||
| int | event_type | |
| The type of event (0x10 being key event) | ||
| union { | ||
| struct { | ||
| unsigned short key_code0 | ||
| Keycode for the first pressed key. More... | ||
| unsigned short key_code1 | ||
| Keycode for the second pressed key. More... | ||
| } | ||
| struct { | ||
| unsigned short touch_x | ||
| The X coordinate of where the touch event is located, in pixels. More... | ||
| unsigned short touch_y | ||
| The Y coordinate of where the touch event is located, in pixels. More... | ||
| } | ||
| }; | ||
| union { | ||
| void * usb_data | ||
| Unknown. More... | ||
| unsigned int scroll_wheel | ||
| Scroll wheel direction, either SCROLL_DOWN or SCROLL_UP. More... | ||
| }; | ||
| void * | unk16 | |
| Unknown. | ||
| void * | unk20 | |
| Unknown. | ||
| unsigned short | available_multipress_events | |
| Number of valid multipress events available for processing. | ||
| unsigned short | unk_0x1a | |
| Unknown. Sometimes can be 0x2 on startup. | ||
| ui_multipress_event_t | multipress_events [8] | |
| The multipress events. | ||
Structure for low level UI events (Prime G1 extension).
Define MUTEKI_HAS_PRIME_UI_EVENT as 1 to make this the underlying type of ui_event_t.
| int ui_event_prime_s::event_type |
The type of event (0x10 being key event)
| unsigned short ui_event_prime_s::key_code0 |
Keycode for the first pressed key.
Only available when event_type is UI_EVENT_TYPE_KEY.
| unsigned short ui_event_prime_s::key_code1 |
Keycode for the second pressed key.
Only available when event_type is UI_EVENT_TYPE_KEY.
| ui_component_t* ui_event_prime_s::recipient |
Event recipient.
If set to NULL, the event is a broadcast event (e.g. input event). Otherwise, the widget's ui_component_t::on_event callback will be called with this event.
| unsigned int ui_event_prime_s::scroll_wheel |
Scroll wheel direction, either SCROLL_DOWN or SCROLL_UP.
| unsigned short ui_event_prime_s::touch_x |
The X coordinate of where the touch event is located, in pixels.
Only available when event_type is UI_EVENT_TYPE_TOUCH_BEGIN, UI_EVENT_TYPE_TOUCH_MOVE, or UI_EVENT_TYPE_TOUCH_END.
| unsigned short ui_event_prime_s::touch_y |
The Y coordinate of where the touch event is located, in pixels.
Only available when event_type is UI_EVENT_TYPE_TOUCH_BEGIN, UI_EVENT_TYPE_TOUCH_MOVE, or UI_EVENT_TYPE_TOUCH_END.
| void* ui_event_prime_s::unk16 |
Unknown.
Maybe used on event types other than touch and key press.
| void* ui_event_prime_s::unk20 |
Unknown.
Seems to be always 0, although ClearEvent() explicitly sets this to 0. Maybe used on event types other than touch and key press.
| void* ui_event_prime_s::usb_data |
Unknown.
Set along with a KEY_USB_INSERTION event. Seems to point to some data. Exact purpose unknown.