| Top |  |  |  |  | 
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 ( | |
| guint32  | a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See NimfModifierType. | [type NimfModifierType] | 
| guint32  | the key that was pressed or released. See the
 | |
| guint32  | the raw code of the key that was pressed or released. |