Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PP_InputEvent_Mouse Struct Reference

#include <pp_input_event.h>

Public Attributes

uint32_t modifier
 
PP_InputEvent_MouseButton button
 
float x
 
float y
 
int32_t click_count
 

Detailed Description

The PP_InputEvent_Mouse struct represents all mouse events except mouse wheel events.

Member Data Documentation

PP_InputEvent_MouseButton PP_InputEvent_Mouse::button

This value represents the button that changed for mouse down or up events. This value will be PP_EVENT_MOUSEBUTTON_NONE for mouse move, enter, and leave events.

uint32_t PP_InputEvent_Mouse::modifier

This value is a bit field combination of the PP_InputEvent_Modifier flags.

float PP_InputEvent_Mouse::x

This values represents the x coordinate of the mouse when the event occurred.

In most, but not all, cases these coordinates will just be integers. For example, the plugin element might be arbitrarily scaled or transformed in the DOM, and translating a mouse event into the coordinate space of the plugin will give non-integer values.

float PP_InputEvent_Mouse::y

This values represents the y coordinate of the mouse when the event occurred.

In most, but not all, cases these coordinates will just be integers. For example, the plugin element might be arbitrarily scaled or transformed in the DOM, and translating a mouse event into the coordinate space of the plugin will give non-integer values.


The documentation for this struct was generated from the following file: