muteki
Loading...
Searching...
No Matches
ui_multipress_event_s Struct Reference

Multipress/multitouch event. More...

#include <common.h>

Data Fields

unsigned int type
 Type of event.
 
unsigned short finger_id
 Finger ID of a touch event.
 
union { 
 
   struct { 
 
      unsigned short   key_code0 
 Keycode for the first pressed key.
 
      unsigned short   key_code1 
 Keycode for the second pressed key (maybe unused).
 
   }  
 
   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...
 
   }  
 
};  
 
unsigned short unk_0xb
 Unknown. Maybe unused and probably padding.
 

Detailed Description

Multipress/multitouch event.

This is a simplified version of the main UI event struct, that only contains the necessary fields to represent a multitouch or a key-press event. Used on Prime G1.

Field Documentation

◆ touch_x

unsigned short ui_multipress_event_s::touch_x

The X coordinate of where the touch event is located, in pixels.

Only available when type is UI_EVENT_TYPE_TOUCH_BEGIN, UI_EVENT_TYPE_TOUCH_MOVE, or UI_EVENT_TYPE_TOUCH_END.

◆ touch_y

unsigned short ui_multipress_event_s::touch_y

The Y coordinate of where the touch event is located, in pixels.

Only available when type is UI_EVENT_TYPE_TOUCH_BEGIN, UI_EVENT_TYPE_TOUCH_MOVE, or UI_EVENT_TYPE_TOUCH_END.

◆ type

unsigned int ui_multipress_event_s::type

Type of event.

See also
ui_event_type_e List of event types.

The documentation for this struct was generated from the following file: