| Top |
| NimfEvent * | nimf_event_new () |
| void | nimf_event_free () |
| gboolean | nimf_event_matches () |
| guint | nimf_event_keycode_to_qwerty_keyval () |
NimfEvent *
nimf_event_new (NimfEventType type);
Creates a new event of the given type. All fields are set to 0.
gboolean nimf_event_matches (NimfEvent *event,const NimfKey **keys);
Checks if event
matches one of the keys
.
struct NimfEventKey {
NimfEventType type;
guint32 state;
guint32 keyval;
guint32 hardware_keycode;
};
Describes a key press or key release event.
NimfEventType |
the type of the event ( |
|
a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See NimfModifierType. |
[type NimfModifierType] | |
the key that was pressed or released. See the
|
||
the raw code of the key that was pressed or released. |