メインページ | ネームスペース一覧 | クラス階層 | データ構造 | Directories | ファイル一覧 | データフィールド

クラス sdl4gcj::input::Joystick

sdl4gcj::input::Joystickに対する継承グラフ

Inheritance graph
[凡例]
sdl4gcj::input::Joystickのコラボレーション図

Collaboration graph
[凡例]

Public メソッド

int getIndex ()
 Gets joystick index number.
native boolean isOpened ()
 Returns true, if this joystick is opened.
native void open ()
 Open this joystick devece.
native void close ()
 Close this joystick devece.
native String getName ()
 Get joystick name.
native int getNumAxes ()
 Get number of axes.
native int getNumBalls ()
 Get number of joystick balls.
native int getNumHats ()
 Get number of joystick hats.
native int getNumButtons ()
 Get number of joystick buttons.
native int getAxis (int axisIndex)
 Get the current state of an axis.
native int getBallDX (int ballIndex)
 Get relative trackball motion.
native int getBallDY (int ballIndex)
 Get relative trackball motion.
native int getHat (int hatIndex)
 Get the current state of an axis.
native int getButton (int butotnIndex)
 Get the current state of a given button on this joystick.
String toString ()

Static Public メソッド

static native int getNumJoysticks ()
 Gets count available joysticks.
static Joystick getJoystick (int index)
 Gets joystick at index.
static Joystick getJoystick ()
 Gets first joystick.
static Joystick[] getAllJoysticks ()
static native boolean getEventState ()
 Gets joystick event polling mode.
static native void setEventState (boolean state)
 Sets joystick event polling mode.
static native void update ()
 Updates the state of all joysticks.

Protected メソッド

void finalize () throws Throwable

Private メソッド

 Joystick (int joystickIndex)

Static Private メソッド

static SDLException createNotOpenedException (int index, String name)
static Joystick[] getJoysticks ()

Private 変数

int index
gnu.gcj.RawData implementation

Static Private 変数

static Joystick[] joysticks = null

コンストラクタとデストラクタ

sdl4gcj::input::Joystick::Joystick int  joystickIndex  )  [inline, private]
 


関数

native void sdl4gcj::input::Joystick::close  ) 
 

Close this joystick devece.

SDL_JoystickClose() wrapper.

static SDLException sdl4gcj::input::Joystick::createNotOpenedException int  index,
String  name
[inline, static, private]
 

void sdl4gcj::input::Joystick::finalize  )  throws Throwable [inline, protected]
 

static Joystick [] sdl4gcj::input::Joystick::getAllJoysticks  )  [inline, static]
 

native int sdl4gcj::input::Joystick::getAxis int  axisIndex  ) 
 

Get the current state of an axis.

SDL_JoystickGetAxis() wrapper.

native int sdl4gcj::input::Joystick::getBallDX int  ballIndex  ) 
 

Get relative trackball motion.

It's buggy... Don't use. SDL_JoystickGetBall() wrapper.

native int sdl4gcj::input::Joystick::getBallDY int  ballIndex  ) 
 

Get relative trackball motion.

It's buggy... Don't use. SDL_JoystickGetBall() wrapper.

native int sdl4gcj::input::Joystick::getButton int  butotnIndex  ) 
 

Get the current state of a given button on this joystick.

SDL_JoystickGetButton() wrapper.

static native boolean sdl4gcj::input::Joystick::getEventState  )  [static]
 

Gets joystick event polling mode.

SDL_JoystickEventState() wrapper.

native int sdl4gcj::input::Joystick::getHat int  hatIndex  ) 
 

Get the current state of an axis.

SDL_JoystickGetHat() wrapper.

戻り値:
The current state is returned as a int which is OR'd combination of one or more of the following

int sdl4gcj::input::Joystick::getIndex  )  [inline]
 

Gets joystick index number.

static Joystick sdl4gcj::input::Joystick::getJoystick  )  [inline, static]
 

Gets first joystick.

static Joystick sdl4gcj::input::Joystick::getJoystick int  index  )  [inline, static]
 

Gets joystick at index.

static Joystick [] sdl4gcj::input::Joystick::getJoysticks  )  [inline, static, private]
 

native String sdl4gcj::input::Joystick::getName  ) 
 

Get joystick name.

SDL_JoystickName() wrapper.

native int sdl4gcj::input::Joystick::getNumAxes  ) 
 

Get number of axes.

SDL_JoystickNumAxes() wrapper.

native int sdl4gcj::input::Joystick::getNumBalls  ) 
 

Get number of joystick balls.

SDL_JoystickNumBalls() wrapper.

native int sdl4gcj::input::Joystick::getNumButtons  ) 
 

Get number of joystick buttons.

SDL_JoystickNumButtons() wrapper.

native int sdl4gcj::input::Joystick::getNumHats  ) 
 

Get number of joystick hats.

SDL_JoystickNumHats() wrapper.

static native int sdl4gcj::input::Joystick::getNumJoysticks  )  [static]
 

Gets count available joysticks.

SDL_NumJoysticks() wrapper.

native boolean sdl4gcj::input::Joystick::isOpened  ) 
 

Returns true, if this joystick is opened.

native void sdl4gcj::input::Joystick::open  ) 
 

Open this joystick devece.

SDL_JoystickOpen() wrapper.

static native void sdl4gcj::input::Joystick::setEventState boolean  state  )  [static]
 

Sets joystick event polling mode.

SDL_JoystickEventState() wrapper.

String sdl4gcj::input::Joystick::toString  )  [inline]
 

static native void sdl4gcj::input::Joystick::update  )  [static]
 

Updates the state of all joysticks.

Updates the state(position, buttons, etc.) of all open joysticks. If joystick events have been enabled with Joystick.setEventState(true) then this is called automatically in the event loop. SDL_JoystickUpdate() wrapper.


構造体

gnu.gcj.RawData sdl4gcj::input::Joystick::implementation [private]
 

int sdl4gcj::input::Joystick::index [private]
 

Joystick [] sdl4gcj::input::Joystick::joysticks = null [static, private]
 


このクラスの説明は次のファイルから生成されました:
sdl4gcjに対してTue Jan 17 15:02:39 2006に生成されました。  doxygen 1.4.3