org.microemu.device.j2se
Class J2SEInputMethod
java.lang.Object
org.microemu.device.InputMethod
org.microemu.device.impl.InputMethodImpl
org.microemu.device.j2se.J2SEInputMethod
- All Implemented Interfaces:
- java.lang.Runnable
public class J2SEInputMethod
- extends InputMethodImpl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
J2SEInputMethod
public J2SEInputMethod()
getGameAction
public int getGameAction(int keyCode)
- Gets the game action associated with the given key code of the device.
- Specified by:
getGameAction in class InputMethod
- Returns:
- the game action corresponding to this key, or
0 if
none
getKeyCode
public int getKeyCode(int gameAction)
- Specified by:
getKeyCode in class InputMethod
- Returns:
- a key code corresponding to this game action
- Throws:
java.lang.IllegalArgumentException - if gameAction is not a valid game action
getKeyName
public java.lang.String getKeyName(int keyCode)
throws java.lang.IllegalArgumentException
- Specified by:
getKeyName in class InputMethod
- Returns:
- a string name for the key
- Throws:
java.lang.IllegalArgumentException - if keyCode is not a valid key code
fireInputMethodListener
protected boolean fireInputMethodListener(J2SEButton button,
char keyChar)
buttonTyped
public void buttonTyped(J2SEButton button)
clipboardPaste
public void clipboardPaste(java.lang.String str)
buttonPressed
public void buttonPressed(J2SEButton button,
char keyChar)
buttonReleased
public void buttonReleased(J2SEButton button,
char keyChar)
getButton
public J2SEButton getButton(java.awt.event.KeyEvent ev)
Copyright © 2001-2010 MicroEmulator Team. All Rights Reserved.