Data Fields

PP_Resource(* Create )(PP_Instance instance, PP_InputEvent_Type type, PP_TimeTicks time_stamp, uint32_t modifiers)
void(* AddTouchPoint )(PP_Resource touch_event, PP_TouchListType list, const struct PP_TouchPoint *point)
PP_Bool(* IsTouchInputEvent )(PP_Resource resource)
uint32_t(* GetTouchCount )(PP_Resource resource, PP_TouchListType list)
struct PP_TouchPoint(* GetTouchByIndex )(PP_Resource resource, PP_TouchListType list, uint32_t index)
struct PP_TouchPoint(* GetTouchById )(PP_Resource resource, PP_TouchListType list, uint32_t touch_id)

Detailed Description

The PPB_TouchInputEvent interface contains pointers to several functions related to touch events.


Field Documentation

void(* PPB_TouchInputEvent::AddTouchPoint)(PP_Resource touch_event, PP_TouchListType list, const struct PP_TouchPoint *point)

Adds a touch point to the touch event in the specified touch-list.

Parameters:
[in]touch_eventA PP_Resource corresponding to a touch event.
[in]listThe list to add the touch point to.
[in]pointThe point to add to the list.
PP_Resource(* PPB_TouchInputEvent::Create)(PP_Instance instance, PP_InputEvent_Type type, PP_TimeTicks time_stamp, uint32_t modifiers)

Creates a touch input event with the given parameters.

Normally you will get a touch 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 touch event types. This newly created touch input event does not have any touch point in any of the touch-point lists. AddTouchPoint should be called to add the touch-points.

Parameters:
[in]instanceThe instance for which this event occurred.
[in]typeA PP_InputEvent_Type identifying the type of input event.
[in]time_stampA PP_TimeTicks indicating the time when the event occurred.
[in]modifiersA bit field combination of the PP_InputEvent_Modifier flags.
Returns:
A PP_Resource containing the new touch input event.
struct PP_TouchPoint(* PPB_TouchInputEvent::GetTouchById)(PP_Resource resource, PP_TouchListType list, uint32_t touch_id) [read]

Returns the touch-point with the specified touch-id in the specified list.

Parameters:
[in]resourceA PP_Resource corresponding to a touch event.
[in]listThe list.
[in]touch_idThe id of the touch-point.
Returns:
A PP_TouchPoint representing the touch-point.
struct PP_TouchPoint(* PPB_TouchInputEvent::GetTouchByIndex)(PP_Resource resource, PP_TouchListType list, uint32_t index) [read]

Returns the touch-point at the specified index from the specified list.

Parameters:
[in]resourceA PP_Resource corresponding to a touch event.
[in]listThe list.
[in]indexThe index.
Returns:
A PP_TouchPoint representing the touch-point.

Returns the number of touch-points in the specified list.

Parameters:
[in]resourceA PP_Resource corresponding to a touch event.
[in]listThe list.
Returns:
The number of touch-points in the specified list.

IsTouchInputEvent() determines if a resource is a touch event.

Parameters:
[in]resourceA PP_Resource corresponding to an event.
Returns:
PP_TRUE if the given resource is a valid touch input event, otherwise PP_FALSE.

The documentation for this struct was generated from the following file:
This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.