Docs: correct doc-string for wmEvent::customdata
Also cross-reference custom-data with GHOST_TEventType.
This commit is contained in:
@@ -177,20 +177,53 @@ typedef enum {
|
||||
typedef enum {
|
||||
GHOST_kEventUnknown = 0,
|
||||
|
||||
GHOST_kEventCursorMove, /* Mouse move event. */
|
||||
GHOST_kEventButtonDown, /* Mouse button event. */
|
||||
GHOST_kEventButtonUp, /* Mouse button event. */
|
||||
GHOST_kEventWheel, /* Mouse wheel event. */
|
||||
GHOST_kEventTrackpad, /* Trackpad event. */
|
||||
/** Mouse move event.
|
||||
*
|
||||
* \note #GHOST_GetEventData returns #GHOST_TEventCursorData.
|
||||
*/
|
||||
GHOST_kEventCursorMove,
|
||||
/** Mouse button down event. */
|
||||
GHOST_kEventButtonDown,
|
||||
/** Mouse button up event. */
|
||||
GHOST_kEventButtonUp,
|
||||
/**
|
||||
* Mouse wheel event.
|
||||
*
|
||||
* \note #GHOST_GetEventData returns #GHOST_TEventWheelData.
|
||||
*/
|
||||
GHOST_kEventWheel,
|
||||
/**
|
||||
* Trackpad event.
|
||||
*
|
||||
* \note #GHOST_GetEventData returns #GHOST_TEventTrackpadData.
|
||||
*/
|
||||
GHOST_kEventTrackpad,
|
||||
|
||||
#ifdef WITH_INPUT_NDOF
|
||||
GHOST_kEventNDOFMotion, /* N degree of freedom device motion event. */
|
||||
GHOST_kEventNDOFButton, /* N degree of freedom device button event. */
|
||||
/**
|
||||
* N degree of freedom device motion event.
|
||||
*
|
||||
* \note #GHOST_GetEventData returns #GHOST_TEventNDOFMotionData.
|
||||
*/
|
||||
GHOST_kEventNDOFMotion,
|
||||
/**
|
||||
* N degree of freedom device button event.
|
||||
*
|
||||
* \note #GHOST_GetEventData returns #GHOST_TEventNDOFButtonData.
|
||||
*/
|
||||
GHOST_kEventNDOFButton,
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Keyboard up/down events.
|
||||
*
|
||||
* Includes repeat events, check #GHOST_TEventKeyData::is_repeat
|
||||
* if detecting repeat events is needed.
|
||||
*
|
||||
* \note #GHOST_GetEventData returns #GHOST_TEventKeyData.
|
||||
*/
|
||||
GHOST_kEventKeyDown,
|
||||
GHOST_kEventKeyUp,
|
||||
// GHOST_kEventKeyAuto,
|
||||
|
||||
GHOST_kEventQuitRequest,
|
||||
|
||||
|
@@ -713,7 +713,18 @@ typedef struct wmEvent {
|
||||
/** Custom data type, stylus, 6-DOF, see `wm_event_types.h`. */
|
||||
short custom;
|
||||
short customdata_free;
|
||||
/** Ascii, unicode, mouse-coords, angles, vectors, NDOF data, drag-drop info. */
|
||||
/**
|
||||
* The #wmEvent::type implies the following #wmEvent::custodata.
|
||||
*
|
||||
* - #EVT_ACTIONZONE_AREA / #EVT_ACTIONZONE_FULLSCREEN / #EVT_ACTIONZONE_FULLSCREEN:
|
||||
* Uses #sActionzoneData.
|
||||
* - #EVT_DROP: uses #ListBase of #wmDrag (also #wmEvent::custom == #EVT_DATA_DRAGDROP).
|
||||
* Typically set to #wmWindowManger::drags.
|
||||
* - #EVT_FILESELECT: uses #wmOperator.
|
||||
* - #EVT_XR_ACTION: uses #wmXrActionData (also #wmEvent::custom == #EVT_DATA_XR).
|
||||
* - #NDOF_MOTION: uses #wmNDOFMotionData (also #wmEvent::custom == #EVT_DATA_NDOF_MOTION).
|
||||
* - #TIMER: uses #wmTimer (also #wmEvent::custom == #EVT_DATA_TIMER).
|
||||
*/
|
||||
void *customdata;
|
||||
|
||||
/* Previous State. */
|
||||
|
Reference in New Issue
Block a user