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) |
struct PP_FloatPoint(* | GetTouchTiltByIndex )(PP_Resource resource, PP_TouchListType list, uint32_t index) |
struct PP_FloatPoint(* | GetTouchTiltById )(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_event A PP_Resource
corresponding to a touch event.[in] list The list to add the touch point to. [in] point The 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] 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.
- 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] resource A PP_Resource
corresponding to a touch event.[in] list The list. [in] touch_id The 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] resource A PP_Resource
corresponding to a touch event.[in] list The list. [in] index The index.
- Returns:
- A
PP_TouchPoint
representing the touch-point.
uint32_t(* PPB_TouchInputEvent::GetTouchCount)(PP_Resource resource, PP_TouchListType list) |
Returns the number of touch-points in the specified list.
- Parameters:
[in] resource A PP_Resource
corresponding to a touch event.[in] list The list.
- Returns:
- The number of touch-points in the specified list.
struct PP_FloatPoint(* PPB_TouchInputEvent::GetTouchTiltById)(PP_Resource resource, PP_TouchListType list, uint32_t touch_id) [read] |
Returns the touch-tilt with the specified touch-id in the specified list.
- Parameters:
[in] resource A PP_Resource
corresponding to a touch event.[in] list The list. [in] touch_id The id of the touch-point.
- Returns:
- A
PP_FloatPoint
representing the tilt of the touch-point.
struct PP_FloatPoint(* PPB_TouchInputEvent::GetTouchTiltByIndex)(PP_Resource resource, PP_TouchListType list, uint32_t index) [read] |
Returns the touch-tilt with the specified index in the specified list.
- Parameters:
[in] resource A PP_Resource
corresponding to a touch event.[in] list The list. [in] index The index.
- Returns:
- A
PP_FloatPoint
representing the tilt of the touch-point.
PP_Bool(* PPB_TouchInputEvent::IsTouchInputEvent)(PP_Resource resource) |
IsTouchInputEvent() determines if a resource is a touch event.
- Parameters:
[in] resource A PP_Resource
corresponding to an event.
- Returns:
PP_TRUE
if the given resource is a valid touch input event, otherwisePP_FALSE
.
The documentation for this struct was generated from the following file: