Pepper_31_C_interfaces
|
#include <ppb_keyboard_input_event_dev.h>
Public Attributes | |
PP_Bool(* | SetUsbKeyCode )(PP_Resource key_event, uint32_t usb_key_code) |
uint32_t(* | GetUsbKeyCode )(PP_Resource key_event) |
struct PP_Var(* | GetCode )(PP_Resource key_event) |
The PPB_KeyboardInputEvent_Dev
interface is an extension to the PPB_KeyboardInputEvent interface that provides
Definition at line 40 of file ppb_keyboard_input_event_dev.h.
struct PP_Var(* PPB_KeyboardInputEvent_Dev_0_2::GetCode)(PP_Resource key_event) |
GetCode() returns the DOM |code| field for this keyboard event, as defined by the UI Events spec: http://www.w3.org/TR/uievents/
[in] | key_event | The key event for which to return the key code. |
Definition at line 75 of file ppb_keyboard_input_event_dev.h.
uint32_t(* PPB_KeyboardInputEvent_Dev_0_2::GetUsbKeyCode)(PP_Resource key_event) |
GetUsbKeyCode() returns the USB key code associated with this keyboard event.
[in] | key_event | The key event for which to return the key code. |
Definition at line 66 of file ppb_keyboard_input_event_dev.h.
PP_Bool(* PPB_KeyboardInputEvent_Dev_0_2::SetUsbKeyCode)(PP_Resource key_event, uint32_t usb_key_code) |
This sets a USB key code in the given PP_Resource
. It is intended that this method be called immediately after any call to Create
.
[in] | key_event | A PP_Resource created by PPB_KeyboardInputEvent 's Create method. |
[in] | usb_key_code | The USB key code to associate with this key_event . |
PP_TRUE
if the USB key code was set successfully. Definition at line 54 of file ppb_keyboard_input_event_dev.h.