com.jinke.gui.event
Class KeyEvent

java.lang.Object
  extended by com.jinke.gui.event.Event
      extended by com.jinke.gui.event.KeyEvent

public class KeyEvent
extends Event


Field Summary
static int ALT
           
static int ALTGR
           
static int CAPS
           
 char ch
          character bound to v3 key
static int CTRL
           
static int KEY_0
           
static int KEY_1
           
static int KEY_2
           
static int KEY_3
          Char for key 3= '!'
static int KEY_4
          //TODO: Char for key 3= '"'
static int KEY_5
          '#'
static int KEY_6
          '$'
static int KEY_7
          '%'
static int KEY_8
          '&'
static int KEY_9
          //TODO: '''
static int KEY_BASE
           
static int KEY_BOOKMARK
           
static int KEY_CANCEL
          '('
static int KEY_CATALOG
           
static int KEY_CIRCLE
           
static int KEY_DOWN
          Next page, '*'
static int KEY_EXPANSION
           
static int KEY_FAST_BACKWARD
           
static int KEY_FAST_FORWARD
           
static int KEY_KEY_RETURN
           
static int KEY_NEXT
           
static int KEY_NEXT_SONG
           
static int KEY_OK
          ')'
static int KEY_POWEROFF
           
static int KEY_PREV
           
static int KEY_PREV_SONG
           
static int KEY_SHORTCUT_NEXT
           
static int KEY_SHORTCUT_PREV
           
static int KEY_SHORTCUT_VOLUME_DOWN
          vol-, '-' long vol- = 109, ch = 'm'
static int KEY_SHORTCUT_VOLUME_UP
          vol+ ',' Theres no long vol+ const, however it is equal 108, char = 'l'(small L)
static int KEY_STOP
           
static int KEY_STYLE
           
static int KEY_UP
          Prev page, '+'
static int KEY_VOLUME_DOWN
           
static int KEY_VOLUME_UP
           
static int KEY_ZOOM
           
static int LALT
           
static int LCTRL
           
static int LONG_KEY_0
          '^'
static int LONG_KEY_1
          '_'
static int LONG_KEY_2
          //TODO: 'power 2'?
static int LONG_KEY_3
          'a'
static int LONG_KEY_4
          'b'
static int LONG_KEY_5
          'c'
static int LONG_KEY_6
          'd'
static int LONG_KEY_7
          'e'
static int LONG_KEY_8
          'f'
static int LONG_KEY_9
          'g'
static int LONG_KEY_BASE
           
static int LONG_KEY_CANCEL
          Default exit to bookshelf on Hanlin V3, char = 'h'
static int LONG_KEY_DOWN
           
static int LONG_KEY_NEXT
           
static int LONG_KEY_OK
          'i'
static int LONG_KEY_PREV
           
static int LONG_KEY_UP
           
static int LSHIFT
           
 int mode
          //TODO:
static int NONE
           
static int NUM
           
static int RALT
           
static int RCTRL
           
static int RSHIFT
           
 int scancode
          //TODO: looks always 0
static int SCR
           
static int SHIFT
           
 
Fields inherited from class com.jinke.gui.event.Event
BUTTON_DOWN, BUTTON_UP, ERROR, EXPOSURE, FDINPUT, MOUSE_ENTER, MOUSE_EXIT, MOUSE_MOTION, MOUSE_POSITION, REFRESH
 
Constructor Summary
KeyEvent()
           
 
Method Summary
 char getCh()
          Returns character mapped to V3+ key
 int getMode()
           
 int getScancode()
          //TODO:
 
Methods inherited from class com.jinke.gui.event.Event
getEventType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

LSHIFT

public static final int LSHIFT
See Also:
Constant Field Values

RSHIFT

public static final int RSHIFT
See Also:
Constant Field Values

LCTRL

public static final int LCTRL
See Also:
Constant Field Values

RCTRL

public static final int RCTRL
See Also:
Constant Field Values

LALT

public static final int LALT
See Also:
Constant Field Values

RALT

public static final int RALT
See Also:
Constant Field Values

NUM

public static final int NUM
See Also:
Constant Field Values

CAPS

public static final int CAPS
See Also:
Constant Field Values

ALTGR

public static final int ALTGR
See Also:
Constant Field Values

SCR

public static final int SCR
See Also:
Constant Field Values

CTRL

public static final int CTRL
See Also:
Constant Field Values

SHIFT

public static final int SHIFT
See Also:
Constant Field Values

ALT

public static final int ALT
See Also:
Constant Field Values

KEY_BASE

public static final int KEY_BASE
See Also:
Constant Field Values

KEY_0

public static final int KEY_0
See Also:
Constant Field Values

KEY_1

public static final int KEY_1
See Also:
Constant Field Values

KEY_2

public static final int KEY_2
See Also:
Constant Field Values

KEY_3

public static final int KEY_3
Char for key 3= '!'

See Also:
Constant Field Values

KEY_4

public static final int KEY_4
//TODO: Char for key 3= '"'

See Also:
Constant Field Values

KEY_5

public static final int KEY_5
'#'

See Also:
Constant Field Values

KEY_6

public static final int KEY_6
'$'

See Also:
Constant Field Values

KEY_7

public static final int KEY_7
'%'

See Also:
Constant Field Values

KEY_8

public static final int KEY_8
'&'

See Also:
Constant Field Values

KEY_9

public static final int KEY_9
//TODO: '''

See Also:
Constant Field Values

KEY_BOOKMARK

public static final int KEY_BOOKMARK
See Also:
Constant Field Values

KEY_CATALOG

public static final int KEY_CATALOG
See Also:
Constant Field Values

KEY_EXPANSION

public static final int KEY_EXPANSION
See Also:
Constant Field Values

KEY_KEY_RETURN

public static final int KEY_KEY_RETURN
See Also:
Constant Field Values

KEY_PREV

public static final int KEY_PREV
See Also:
Constant Field Values

KEY_NEXT

public static final int KEY_NEXT
See Also:
Constant Field Values

KEY_CANCEL

public static final int KEY_CANCEL
'('

See Also:
Constant Field Values

KEY_OK

public static final int KEY_OK
')'

See Also:
Constant Field Values

KEY_DOWN

public static final int KEY_DOWN
Next page, '*'

See Also:
Constant Field Values

KEY_UP

public static final int KEY_UP
Prev page, '+'

See Also:
Constant Field Values

KEY_SHORTCUT_PREV

public static final int KEY_SHORTCUT_PREV
See Also:
Constant Field Values

KEY_SHORTCUT_NEXT

public static final int KEY_SHORTCUT_NEXT
See Also:
Constant Field Values

KEY_SHORTCUT_VOLUME_UP

public static final int KEY_SHORTCUT_VOLUME_UP
vol+ ',' Theres no long vol+ const, however it is equal 108, char = 'l'(small L)

See Also:
Constant Field Values

KEY_SHORTCUT_VOLUME_DOWN

public static final int KEY_SHORTCUT_VOLUME_DOWN
vol-, '-' long vol- = 109, ch = 'm'

See Also:
Constant Field Values

KEY_POWEROFF

public static final int KEY_POWEROFF
See Also:
Constant Field Values

KEY_ZOOM

public static final int KEY_ZOOM
See Also:
Constant Field Values

KEY_PREV_SONG

public static final int KEY_PREV_SONG
See Also:
Constant Field Values

KEY_NEXT_SONG

public static final int KEY_NEXT_SONG
See Also:
Constant Field Values

KEY_FAST_FORWARD

public static final int KEY_FAST_FORWARD
See Also:
Constant Field Values

KEY_FAST_BACKWARD

public static final int KEY_FAST_BACKWARD
See Also:
Constant Field Values

KEY_VOLUME_UP

public static final int KEY_VOLUME_UP
See Also:
Constant Field Values

KEY_VOLUME_DOWN

public static final int KEY_VOLUME_DOWN
See Also:
Constant Field Values

KEY_CIRCLE

public static final int KEY_CIRCLE
See Also:
Constant Field Values

KEY_STYLE

public static final int KEY_STYLE
See Also:
Constant Field Values

KEY_STOP

public static final int KEY_STOP
See Also:
Constant Field Values

LONG_KEY_BASE

public static final int LONG_KEY_BASE
See Also:
Constant Field Values

LONG_KEY_0

public static final int LONG_KEY_0
'^'

See Also:
Constant Field Values

LONG_KEY_1

public static final int LONG_KEY_1
'_'

See Also:
Constant Field Values

LONG_KEY_2

public static final int LONG_KEY_2
//TODO: 'power 2'?

See Also:
Constant Field Values

LONG_KEY_3

public static final int LONG_KEY_3
'a'

See Also:
Constant Field Values

LONG_KEY_4

public static final int LONG_KEY_4
'b'

See Also:
Constant Field Values

LONG_KEY_5

public static final int LONG_KEY_5
'c'

See Also:
Constant Field Values

LONG_KEY_6

public static final int LONG_KEY_6
'd'

See Also:
Constant Field Values

LONG_KEY_7

public static final int LONG_KEY_7
'e'

See Also:
Constant Field Values

LONG_KEY_8

public static final int LONG_KEY_8
'f'

See Also:
Constant Field Values

LONG_KEY_9

public static final int LONG_KEY_9
'g'

See Also:
Constant Field Values

LONG_KEY_PREV

public static final int LONG_KEY_PREV
See Also:
Constant Field Values

LONG_KEY_NEXT

public static final int LONG_KEY_NEXT
See Also:
Constant Field Values

LONG_KEY_CANCEL

public static final int LONG_KEY_CANCEL
Default exit to bookshelf on Hanlin V3, char = 'h'

See Also:
Constant Field Values

LONG_KEY_OK

public static final int LONG_KEY_OK
'i'

See Also:
Constant Field Values

LONG_KEY_DOWN

public static final int LONG_KEY_DOWN
See Also:
Constant Field Values

LONG_KEY_UP

public static final int LONG_KEY_UP
See Also:
Constant Field Values

mode

public int mode
//TODO:


ch

public char ch
character bound to v3 key


scancode

public int scancode
//TODO: looks always 0

Constructor Detail

KeyEvent

public KeyEvent()
Method Detail

getMode

public int getMode()
Returns:

getCh

public char getCh()
Returns character mapped to V3+ key

Returns:
char

getScancode

public int getScancode()
//TODO:

Returns: