SR Research Support Site
Data Fields
InputEvent Union Reference

Union of all input types. More...

Data Fields

byte type
 
KeyInput key
 
MouseMotionEvent motion
 
MouseButtonEvent button
 

Detailed Description

Union of all input types.

A union that is used by the callback function get_input_key_hook, to collect input data. At the moment, it is meant to collect only keyboard inputs. In the future this may be used to support mouse inputs as well.

Field Documentation

Indicates which mouse button has changed state.

KeyInput key

Indicates which key on the keyboard has changed state.

Information about the movement of the mouse.

byte type

Shows whether a mouse or keyboard event is encoded.

See also
KEYINPUT_EVENT , MOUSE_INPUT_EVENT , MOUSE_MOTION_INPUT_EVENT , MOUSE_BUTTON_INPUT_EVENT

Copyright ©2002-2026, SR Research Ltd.