FPLBase
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
input.h File Reference
#include <functional>
#include <map>
#include <queue>
#include <string>
#include <vector>
#include "fplbase/config.h"
#include "keyboard_keycodes.h"
#include "mathfu/constants.h"
#include "mathfu/glsl_mappings.h"
#include <jni.h>
#include "pthread.h"

Go to the source code of this file.

Classes

class  fplbase::Button
 Used to record state for fingers, mousebuttons, keys and gamepad buttons. More...
 
class  fplbase::InputPointer
 Stores information about the current and recent state of a pointer. More...
 
class  fplbase::Joystick
 Represents the state of a Joystick. More...
 
class  fplbase::Gamepad
 Represents the state of a connected gamepad. More...
 
struct  fplbase::AndroidInputEvent
 Structure used for storing gamepad events when we get them from jni until we can handle them. More...
 
struct  fplbase::TextInputEventEdit
 An event parameter for a text edit in IME (Input Method Editor). The information passed in the event is an intermediate state and only used for UI represents. Once IME finalizes an edit, the user recieves an TextInputEventText event for the finalized strings. More...
 
struct  fplbase::TextInputEventKey
 An event parameter for a keyboard input. More...
 
struct  fplbase::TextInputEvent
 Holds text input events. More...
 
class  fplbase::InputSystem
 Use to handle time, touch/mouse/keyboard/etc input, and lifecyle events. More...
 

Namespaces

 fplbase
 Namespace for FPLBase library.
 

Macros

#define ANDROID_GAMEPAD   1
 

Typedefs

typedef uint64_t fplbase::FingerId
 
typedef void * fplbase::JoystickData
 
typedef uint64_t fplbase::JoystickId
 
typedef void * fplbase::Event
 
typedef void * fplbase::TouchFingerEvent
 
typedef int fplbase::AndroidInputDeviceId
 

Enumerations

enum  {
  K_POINTER1 = -10, K_POINTER2, K_POINTER3, K_POINTER4,
  K_POINTER5, K_POINTER6, K_POINTER7, K_POINTER8,
  K_POINTER9, K_POINTER10, K_PAD_UP = -20, K_PAD_DOWN,
  K_PAD_LEFT, K_PAD_RIGHT, K_PAD_A, K_PAD_B
}
 
enum  TextInputEventType { kTextInputEventTypeEdit = 0, kTextInputEventTypeText = 1, kTextInputEventTypeKey = 2 }
 

Variables

const float fplbase::kGamepadHatThreshold = 0.5f