Public Member Functions
|InputEvent (PP_Resource input_event_resource)|
|PP_InputEvent_Type||GetType () const|
|PP_TimeTicks||GetTimeStamp () const|
|uint32_t||GetModifiers () const|
This class represents an input event resource.
Normally you will get passed this object through the HandleInputEvent() function on the
Typically you would check the type of the event and then create the appropriate event-specific object to query the properties.
Constructor & Destructor Documentation
Member Function Documentation
GetModifiers() returns a bitfield indicating which modifiers were down at the time of the event.
This is a combination of the flags in the
- The modifiers associated with the event, or 0 if the given resource is not a valid event resource.
GetTimeStamp() returns the time that the event was generated.
The time will be before the current time since processing and dispatching the event has some overhead. Use this value to compare the times the user generated two events without being sensitive to variable processing time.
The return value is in time ticks, which is a monotonically increasing clock not related to the wall clock time. It will not change if the user changes their clock or daylight savings time starts, so can be reliably used to compare events. This means, however, that you can't correlate event times to a particular time of day on the system clock.
PP_TimeTickscontaining the time the event was generated.
GetType() returns the type of input event for this input event object.
PP_InputEvent_Typeif successful, PP_INPUTEVENT_TYPE_UNDEFINED if the resource is invalid.
The documentation for this class was generated from the following file: