game.controller
Class CMouseController
java.lang.Object
game.controller.CController
game.controller.CMouseController
- All Implemented Interfaces:
- java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
public class CMouseController
- extends CController
- implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Mouse controller implementation.
- Author:
- seb
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BUTTON_1
public static final int BUTTON_1
- See Also:
- Constant Field Values
BUTTON_2
public static final int BUTTON_2
- See Also:
- Constant Field Values
BUTTON_3
public static final int BUTTON_3
- See Also:
- Constant Field Values
STATE_IN
public static final int STATE_IN
- See Also:
- Constant Field Values
STATE_NEVER_USED
public static final int STATE_NEVER_USED
- See Also:
- Constant Field Values
m_vmButton1
int m_vmButton1
m_vmButton2
int m_vmButton2
m_vmButton3
int m_vmButton3
m_x
int m_x
m_y
int m_y
m_previousX
int m_previousX
m_previousY
int m_previousY
m_dx
int m_dx
m_dy
int m_dy
CMouseController
public CMouseController()
getX
public final int getX()
getY
public final int getY()
getDx
public final int getDx()
getDy
public final int getDy()
recordPosition
public final void recordPosition()
remapButton
public void remapButton(int ID_BUTTON,
int VM)
- Specified by:
remapButton
in class CController
getStateID
final int getStateID(int VM)
- Specified by:
getStateID
in class CController
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved
in interface java.awt.event.MouseMotionListener
use
final void use()