Function
WPEPlatformEventkeyboard_new
Declaration [src]
WPEEvent*
wpe_event_keyboard_new (
WPEEventType type,
WPEView* view,
WPEInputSource source,
guint32 time,
WPEModifiers modifiers,
guint keycode,
guint keyval
)
Parameters
type-
Type:
WPEEventTypeA
WPEEventType(WPE_EVENT_KEYBOARD_KEY_DOWNorWPE_EVENT_KEYBOARD_KEY_UP) view-
Type:
WPEViewA
WPEView.The data is owned by the caller of the function. source-
Type:
WPEInputSourceA
WPEInputSource. time-
Type:
guint32The event timestamp.
modifiers-
Type:
WPEModifiersA
WPEModifiers. keycode-
Type:
guintThe hardware key code.
keyval-
Type:
guintThe translated key value.
Return value
Type: WPEEvent
A new allocated WPEEvent.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |