org.microemu.device.swt
Class SwtInputMethod

java.lang.Object
  extended by org.microemu.device.InputMethod
      extended by org.microemu.device.impl.InputMethodImpl
          extended by org.microemu.device.swt.SwtInputMethod
All Implemented Interfaces:
java.lang.Runnable

public class SwtInputMethod
extends org.microemu.device.impl.InputMethodImpl


Field Summary
 
Fields inherited from class org.microemu.device.impl.InputMethodImpl
lastButton, lastButtonCharIndex, resetKey
 
Fields inherited from class org.microemu.device.InputMethod
INPUT_123, INPUT_ABC_LOWER, INPUT_ABC_UPPER, INPUT_NONE, inputMethodListener, maxSize
 
Constructor Summary
SwtInputMethod()
           
 
Method Summary
 SwtButton getButton(org.eclipse.swt.events.KeyEvent ev)
           
 int getGameAction(int keyCode)
           
 int getKeyCode(int gameAction)
           
 java.lang.String getKeyName(int keyCode)
           
 void keyPressed(org.eclipse.swt.events.KeyEvent ev)
           
 void keyReleased(org.eclipse.swt.events.KeyEvent ev)
           
 void mousePressed(org.eclipse.swt.events.KeyEvent ev)
           
 void mouseReleased(int keyCode)
           
 
Methods inherited from class org.microemu.device.impl.InputMethodImpl
dispose, filterConstraints, filterInputMode, insertText, pointerDragged, pointerPressed, pointerReleased, run, setInputMethodListener
 
Methods inherited from class org.microemu.device.InputMethod
getInputMode, removeInputMethodListener, setInputMode, setMaxSize, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwtInputMethod

public SwtInputMethod()
Method Detail

getGameAction

public int getGameAction(int keyCode)
Specified by:
getGameAction in class org.microemu.device.InputMethod

getKeyCode

public int getKeyCode(int gameAction)
Specified by:
getKeyCode in class org.microemu.device.InputMethod

getKeyName

public java.lang.String getKeyName(int keyCode)
                            throws java.lang.IllegalArgumentException
Specified by:
getKeyName in class org.microemu.device.InputMethod
Throws:
java.lang.IllegalArgumentException

keyPressed

public void keyPressed(org.eclipse.swt.events.KeyEvent ev)

keyReleased

public void keyReleased(org.eclipse.swt.events.KeyEvent ev)

mousePressed

public void mousePressed(org.eclipse.swt.events.KeyEvent ev)

mouseReleased

public void mouseReleased(int keyCode)

getButton

public SwtButton getButton(org.eclipse.swt.events.KeyEvent ev)


Copyright © 2001-2007 MicroEmulator Team. All Rights Reserved.