|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gameframe.engines.jdk11x.CInputEngine
Implementation of the input engine for Java 1.1 JVM's.
Field Summary | |
private java.awt.Component |
m_focusComponent
The focus component that is listened for events. |
private static CInputEngine |
mStatic_inputEngine
The singleton instance of the input engine. |
private static CKeyboard |
mStatic_keyboard
The keyboard engine or null if not created yet. |
private static CPointer |
mStatic_pointer
The mouse engine or null if not created yet. |
Constructor Summary | |
private |
CInputEngine(java.awt.Component focusComponent)
Constructs an input engine. |
Method Summary | |
void |
finalize()
Releases all resources held by the all input device implementations. |
KeyboardDevice[] |
getAllKeyboardDevices()
Returns all keyboard type of devices found on the system. |
PointerDevice[] |
getAllPointerDevices()
Returns all pointer type of devices found on the system. |
KeyboardDevice |
getDefaultKeyboardDevice()
Returns the default keyboard type of device in the system. |
PointerDevice |
getDefaultPointerDevice()
Returns the default pointer type of device in the system. |
java.lang.String |
getDescription()
Returns the (possibly multiline) description of the implementation. |
static CInputEngine |
getInstance(java.awt.Component focusComponent)
Returns the singleton input engine instance. |
java.lang.String |
getName()
Returns the short name (max 8 characters) of the implementation "Java11". |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static CKeyboard mStatic_keyboard
private static CPointer mStatic_pointer
private static CInputEngine mStatic_inputEngine
private java.awt.Component m_focusComponent
Constructor Detail |
private CInputEngine(java.awt.Component focusComponent) throws GameFrameException
focusComponent
- Component that is listened for events.Method Detail |
public static CInputEngine getInstance(java.awt.Component focusComponent) throws GameFrameException
focusComponent
- Component that is listened for events.public KeyboardDevice getDefaultKeyboardDevice() throws GameFrameException
getDefaultKeyboardDevice
in interface InputEngine
KeyboardDevice
public KeyboardDevice[] getAllKeyboardDevices() throws GameFrameException
getAllKeyboardDevices
in interface InputEngine
KeyboardDevice
public PointerDevice getDefaultPointerDevice() throws GameFrameException
getDefaultPointerDevice
in interface InputEngine
PointerDevice
public PointerDevice[] getAllPointerDevices() throws GameFrameException
getAllPointerDevices
in interface InputEngine
PointerDevice
public java.lang.String getName()
getName
in interface InputEngine
public java.lang.String getDescription()
getDescription
in interface InputEngine
public void finalize()
finalize
in interface Finalizable
finalize
in class java.lang.Object
|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |