Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::io::JoyStick Class Reference

#include <JoyStick.h>

Inheritance diagram for kge::io::JoyStick:
kge::KgeUnknown

Public Member Functions

 JoyStick ()
 Sazande.
 ~JoyStick ()
 Mokhareb.
void GetAXISPosition (JS_AXIS &pos)
 Gereftane Mogiate mehvarhaye JoyStick.
JS_AXIS GetAXISPosition ()
 Gereftane mogheiate mehvarhaye JoyStick.
bool ButtonDown (int btn)
 check kardane feshorde shodane dokme haye JoyStick
JS_INFO GetCurrentJoySickInfo ()
 gereftane etelate joystick dar hale estefade
bool JoyStickIsActive ()
 baresie faal bodan JoyStick
JS_HAT GetHATState (int HAT_Number=0)
 bargardandane vaziate HAT
- Public Member Functions inherited from kge::KgeUnknown
 KgeUnknown ()
 Constructor.
virtual ~KgeUnknown ()
 Destructor.
virtual void AddRef ()
 Add a reference to the object.
virtual void DecRef ()
 Decrease a reference from the object. if its reference count get 0 then the object will destroy.
u32 GetRefCount ()
 Return resource reference count.
const char * GetDebugText ()
 returns the instance debug text.

Protected Attributes

SDL_Joystick * stick
int JoyNo

Additional Inherited Members

- Protected Member Functions inherited from kge::KgeUnknown
void SetDebugText (char *text)

Detailed Description

Definition at line 64 of file JoyStick.h.

Constructor & Destructor Documentation

kge::io::JoyStick::JoyStick ( )

Sazande.

kge::io::JoyStick::~JoyStick ( )

Mokhareb.

Member Function Documentation

bool kge::io::JoyStick::ButtonDown ( int  btn)

check kardane feshorde shodane dokme haye JoyStick

Parameters
buttonname dokmeie ke garar ast check shavad ra moshakhas mikonad
void kge::io::JoyStick::GetAXISPosition ( JS_AXIS pos)

Gereftane Mogiate mehvarhaye JoyStick.

Parameters
posmogiate mehvaraye Joy ra dar an zakhire mikonad
JS_AXIS kge::io::JoyStick::GetAXISPosition ( )

Gereftane mogheiate mehvarhaye JoyStick.

JS_INFO kge::io::JoyStick::GetCurrentJoySickInfo ( )

gereftane etelate joystick dar hale estefade

JS_HAT kge::io::JoyStick::GetHATState ( int  HAT_Number = 0)

bargardandane vaziate HAT

bool kge::io::JoyStick::JoyStickIsActive ( )

baresie faal bodan JoyStick

Member Data Documentation

int kge::io::JoyStick::JoyNo
protected

Definition at line 101 of file JoyStick.h.

SDL_Joystick* kge::io::JoyStick::stick
protected

Definition at line 99 of file JoyStick.h.


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