FPLBase
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
fplbase::AndroidInputEvent Struct Reference

Structure used for storing gamepad events when we get them from jni until we can handle them. More...

#include <input.h>

Detailed Description

Structure used for storing gamepad events when we get them from jni until we can handle them.

Public Member Functions

 AndroidInputEvent ()
 AndroidInputEvent default constructor.
 
 AndroidInputEvent (AndroidInputDeviceId device_id_, int event_code_, int control_code_, float x_, float y_)
 Constructor for an AndroidInputeEvent. More...
 

Public Attributes

AndroidInputDeviceId device_id
 The device ID of the Android device.
 
int event_code
 The event code.
 
int control_code
 The control code.
 
float x
 The x coordinate for the event.
 
float y
 The y coordinate for the event.
 

Constructor & Destructor Documentation

fplbase::AndroidInputEvent::AndroidInputEvent ( AndroidInputDeviceId  device_id_,
int  event_code_,
int  control_code_,
float  x_,
float  y_ 
)
inline

Constructor for an AndroidInputeEvent.

Parameters
[in]device_id_The device ID of the Android device.
[in]event_code_The event code for the gamepad event.
[in]control_code_The control code for the gamepad event.
[in]x_The x position of the event.
[in]y_The y position for the event.

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