Epson BT-2000 Developers Guide - Page 32

Hardware, buttons, Key event

Page 32 highlights

Hardware buttons A button B button X button Y button D-pad up D-pad down D-pad left D-pad right select/OK key Key event KeyEvent.KEYCODE_F1 KeyEvent.KEYCODE_F2 KeyEvent.KEYCODE_F3 KeyEvent.KEYCODE_F4 KeyEvent.KEYCODE_DPAD_UP KeyEvent.KEYCODE_DPAD_DOWN KeyEvent.KEYCODE_DPAD_LEFT KeyEvent.KEYCODE_DPAD_RIGHT KeyEvent.KEYCODE_DPAD_CENTER ■ Using the change function for key assignments By changing the key assignments, the key codes called when you press the A, B, X, or Y buttons are not the standard Back, Home, or Menu buttons in Android, instead, the key codes are changed to F1 to F4. Therefore, you can include optional funtions to the F1 to F4 codes making use of the A, B, X, and Y buttons as with the application's original function. ■ Specifications for status transitions in key assignment mode Status transitions (where the value of the key is changed) for the key assignment mode cannot be set in the app; they should be set in the system. For example, when the key assignment mode for application A is set to User mode, and then a different application B is started, the key assignment mode for application B is also set to User mode. The BT-2000 is equipped with a standard iWnnIME text input system. This system uses the Back, Menu, and D-pad keys for input, and automatically changes the key assignments to Default mode when starting up the BT-2000. When closing an app, the key assignment mode changes to the mode set in iWnnIME for the last app that was started, however operations are not guaranteed when an error occurs or if the app does not close normally. For key assignment mode management, we recommend using the mode used for the last app to be started. When an app is constructed with multiple source calls, and calls that apply not just iWnnIME, we recommend managing the key assignment status according to each app that is started. MOVERIO Pro Developer's Guide (Rev.1.0) 28

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168

MOVERIO Pro Developer's Guide (Rev.1.0)
28
Hardware
buttons
Key event
A button
KeyEvent.KEYCODE_F1
B button
KeyEvent.KEYCODE_F2
X button
KeyEvent.KEYCODE_F3
Y button
KeyEvent.KEYCODE_F4
D-pad up
KeyEvent.KEYCODE_DPAD_UP
D-pad down
KeyEvent.KEYCODE_DPAD_DOWN
D-pad left
KeyEvent.KEYCODE_DPAD_LEFT
D-pad right
KeyEvent.KEYCODE_DPAD_RIGHT
select/OK key
KeyEvent.KEYCODE_DPAD_CENTER
■ Using the change function for key assignments
By changing the key assignments, the key codes called when you press the A, B, X, or Y buttons
are not the standard Back, Home, or Menu buttons in Android, instead, the key codes are
changed to F1 to F4.
Therefore, you can include optional funtions to the F1 to F4 codes making use of the A, B, X, and
Y buttons as with the application's original function.
■ Specifications for status transitions in key assignment mode
Status transitions (where the value of the key is changed) for the key assignment mode cannot
be set in the app; they should be set in the system. For example, when the key assignment
mode for application A is set to User mode, and then a different application B is started, the key
assignment mode for application B is also set to User mode.
The BT-2000 is equipped with a standard iWnnIME text input system. This system uses the
Back, Menu, and D-pad keys for input, and automatically changes the key assignments to
Default mode when starting up the BT-2000. When closing an app, the key assignment mode
changes to the mode set in iWnnIME for the last app that was started, however operations are
not guaranteed when an error occurs or if the app does not close normally. For key assignment
mode management, we recommend using the mode used for the last app to be started.
When an app is constructed with multiple source calls, and calls that apply not just iWnnIME, we
recommend managing the key assignment status according to each app that is started.