Oxygine  1
2g game engine
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
oxygine::TouchEvent Class Reference
Inheritance diagram for oxygine::TouchEvent:

Public Types

enum  {
  __FIRST = sysEventID('T', 'O', 0), CLICK, OVER, OUT,
- Public Types inherited from oxygine::Event
enum  { COMPLETE = sysEventID('C', 'M', 'P') }
enum  Phase { phase_capturing = 1, phase_target, phase_bubbling }

Public Member Functions

 TouchEvent (eventType type, bool Bubbles=true, const Vector2 &locPosition=Vector2(0, 0))
const PointerStategetPointer () const
- Public Member Functions inherited from oxygine::Event
 Event (eventType Type, bool Bubbles=false)
void stopPropagation ()
void stopImmediatePropagation ()
void removeListener ()

Static Public Member Functions

static bool isTouchEvent (int eventID)

Public Attributes

Vector2 localPosition
Vector2 position
float pressure
MouseButton mouseButton
pointer_index index
Vector2 wheelDirection
bool __clickDispatched
float __localScale
- Public Attributes inherited from oxygine::Event
eventType type
Phase phase
bool bubbles
bool stopsImmediatePropagation
bool stopsPropagation
void * userData
spObject userDataObject
int listenerID
spEventDispatcher target
spEventDispatcher currentTarget

Member Data Documentation

◆ localPosition

Vector2 oxygine::TouchEvent::localPosition

position in local space for Event::currentTarget Actor

◆ position

Vector2 oxygine::TouchEvent::position

position in local space for Event::target actor

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