Pepper_42_C_interfaces
|
#include <ppb_input_event.h>
Public Attributes | |
PP_Resource(* | Create )(PP_Instance instance, PP_InputEvent_Type type, PP_TimeTicks time_stamp, uint32_t modifiers, uint32_t key_code, struct PP_Var character_text, struct PP_Var code) |
PP_Bool(* | IsKeyboardInputEvent )(PP_Resource resource) |
uint32_t(* | GetKeyCode )(PP_Resource key_event) |
struct PP_Var(* | GetCharacterText )(PP_Resource character_event) |
struct PP_Var(* | GetCode )(PP_Resource key_event) |
The PPB_KeyboardInputEvent
interface contains pointers to several functions related to keyboard input events.
Definition at line 702 of file ppb_input_event.h.
PP_Resource(* PPB_KeyboardInputEvent_1_2::Create)(PP_Instance instance, PP_InputEvent_Type type, PP_TimeTicks time_stamp, uint32_t modifiers, uint32_t key_code, struct PP_Var character_text, struct PP_Var code) |
Creates a keyboard input event with the given parameters. Normally you will get a keyboard event passed through the HandleInputEvent and will not need to create them, but some applications may want to create their own for internal use. The type must be one of the keyboard event types.
[in] | instance | The instance for which this event occurred. |
[in] | type | A PP_InputEvent_Type identifying the type of input event. |
[in] | time_stamp | A PP_TimeTicks indicating the time when the event occurred. |
[in] | modifiers | A bit field combination of the PP_InputEvent_Modifier flags. |
[in] | key_code | This value reflects the DOM KeyboardEvent keyCode field, which is the Windows-style Virtual Key code of the key. |
[in] | character_text | This value represents the typed character as a UTF-8 string. |
[in] | code | This value represents the DOM3 |code| string that corresponds to the physical key being pressed. |
PP_Resource
containing the new keyboard input event. Definition at line 733 of file ppb_input_event.h.
struct PP_Var(* PPB_KeyboardInputEvent_1_2::GetCharacterText)(PP_Resource character_event) |
GetCharacterText() returns the typed character as a UTF-8 string for the given character event.
[in] | character_event | A PP_Resource corresponding to a keyboard event. |
Definition at line 769 of file ppb_input_event.h.
struct PP_Var(* PPB_KeyboardInputEvent_1_2::GetCode)(PP_Resource key_event) |
GetCode() returns the DOM |code| field for this keyboard event, as defined in the DOM3 Events spec: http://www.w3.org/TR/DOM-Level-3-Events/
[in] | key_event | The key event for which to return the key code. |
Definition at line 779 of file ppb_input_event.h.
uint32_t(* PPB_KeyboardInputEvent_1_2::GetKeyCode)(PP_Resource key_event) |
GetKeyCode() returns the DOM keyCode field for the keyboard event. Chrome populates this with the Windows-style Virtual Key code of the key.
[in] | key_event | A PP_Resource corresponding to a keyboard event. |
Definition at line 757 of file ppb_input_event.h.
PP_Bool(* PPB_KeyboardInputEvent_1_2::IsKeyboardInputEvent)(PP_Resource resource) |
IsKeyboardInputEvent() determines if a resource is a keyboard event.
[in] | resource | A PP_Resource corresponding to an event. |
PP_TRUE
if the given resource is a valid input event. Definition at line 747 of file ppb_input_event.h.