game.controller
Class CGameController
java.lang.Object
game.controller.CController
game.controller.CGameController
- All Implemented Interfaces:
- java.awt.event.KeyListener, java.util.EventListener
public class CGameController
- extends CController
- implements java.awt.event.KeyListener
Keyboard-based remapable game controller implementation. Basically a four direction pad with three action buttons plus a start button.
- Author:
- sroccaserra
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BUTTON_UP
public static final int BUTTON_UP
- See Also:
- Constant Field Values
BUTTON_DOWN
public static final int BUTTON_DOWN
- See Also:
- Constant Field Values
BUTTON_LEFT
public static final int BUTTON_LEFT
- See Also:
- Constant Field Values
BUTTON_RIGHT
public static final int BUTTON_RIGHT
- See Also:
- Constant Field Values
BUTTON_A
public static final int BUTTON_A
- See Also:
- Constant Field Values
BUTTON_B
public static final int BUTTON_B
- See Also:
- Constant Field Values
BUTTON_C
public static final int BUTTON_C
- See Also:
- Constant Field Values
BUTTON_START
public static final int BUTTON_START
- See Also:
- Constant Field Values
m_vkButtonUP
int m_vkButtonUP
m_vkButtonDOWN
int m_vkButtonDOWN
m_vkButtonLEFT
int m_vkButtonLEFT
m_vkButtonRIGHT
int m_vkButtonRIGHT
m_vkButtonA
int m_vkButtonA
m_vkButtonB
int m_vkButtonB
m_vkButtonC
int m_vkButtonC
m_vkButtonSTART
int m_vkButtonSTART
CGameController
public CGameController()
remapButton
public void remapButton(int ID_STATE,
int VK)
- Specified by:
remapButton
in class CController
getStateID
final int getStateID(int VK)
- Specified by:
getStateID
in class CController
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased
in interface java.awt.event.KeyListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped
in interface java.awt.event.KeyListener