Difference between revisions of "Keyboard"

From Pandora Wiki
Jump to: navigation, search
(Keycodes)
(Keycodes: Added Hex column)
Line 61: Line 61:
 
This table might be useful if you're trying to map keys in some program, or writing a program:
 
This table might be useful if you're trying to map keys in some program, or writing a program:
 
{| class="wikitable"
 
{| class="wikitable"
!Pandora button!!Keycode
+
!Pandora button!!Keycode!!Hex Equivalent
 
|-
 
|-
|Space ||key 32
+
|Space || key 32 || 0020
 
|-
 
|-
|Pandora ||key 147
+
|Pandora || key 147 || 0093
 
|-
 
|-
|D-pad up ||key 273  
+
|D-pad up || key 273 || 0111
 
|-
 
|-
|D-pad down ||key 274  
+
|D-pad down || key 274 || 0112
 
|-
 
|-
|D-pad right ||key 275  
+
|D-pad right || key 275 || 0113
 
|-
 
|-
|D-pad left ||key 276  
+
|D-pad left || key 276 || 0114
 
|-
 
|-
|Game A ||key 278
+
|Game A || key 278 || 0116
 +
|-
 +
|Game B || key 279 || 0117
 
|-
 
|-
|Game B ||key 279
+
|Game Y || key 280 || 0118
 
|-
 
|-
|Game Y ||key 280
+
|Game X || key 281 || 0119
 
|-
 
|-
|Game X ||key 281
+
|Shoulder L || key 303 || 012f
 
|-
 
|-
|Shoulder L ||key 303
+
|Shoulder R || key 305 || 0131
 
|-
 
|-
|Shoulder R ||key 305
+
|Select || key 306 || 0132
 
|-
 
|-
|Select ||key 306
+
|Start || key 308 || 0134
|-
 
|Start ||key 308
 
 
|}
 
|}
 
Sources: [[DOSBox#Assigning_action_keys_to_A.2FB.2FX.2FY|1]], [http://www.gp32x.com/board/index.php?app=forums&module=forums&section=findpost&pid=949070 2], [http://www.gp32x.com/board/index.php?/topic/54073-the-one-nub-club/page__view__findpost__p__905644 3] [http://www.gp32x.com/board/index.php?/topic/55124-remapping-the-mouse-buttons-etc/page__view__findpost__p__896576 4] (note: the last two links give different keycodes for the gaming buttons. Possibly both numbers will work?)
 
Sources: [[DOSBox#Assigning_action_keys_to_A.2FB.2FX.2FY|1]], [http://www.gp32x.com/board/index.php?app=forums&module=forums&section=findpost&pid=949070 2], [http://www.gp32x.com/board/index.php?/topic/54073-the-one-nub-club/page__view__findpost__p__905644 3] [http://www.gp32x.com/board/index.php?/topic/55124-remapping-the-mouse-buttons-etc/page__view__findpost__p__896576 4] (note: the last two links give different keycodes for the gaming buttons. Possibly both numbers will work?)

Revision as of 21:09, 10 April 2012

Pandkey.png

XFCE

Key Function
Shoulder Button L Shift
Shoulder Button R Ctrl
D-pad Cursor Keys
L-Nub Mouse Cursor
R-Nub Mousebutton Mode (L=L mousebutton click, U=Double-L-click, R=R mousebutton click, D=Middle mousebutton click)
Game A Home
Game B End
Game Y PgUp
Game X PgDn
Fn key Sticky, so can be pressed before a key which you want to modify.
Shift-Enter Compose mode. Compose mode allows <shift><enter><fn> s a to combine " and a to get a special character, for example.
Alt/Ctrl/Start(1 sec) Kill(long hold)
Pandora key Quick-press pulls up start menu.
Longer press brings up kill-tasks menu.
Hold and flick power switch does a hard-reset of the Pandora (in case of software crashes; see also power modes).
  • In XFCE, if a program is greater than the Pandora's screen resolution, you can scroll by holding down shift (or the left shoulder button) then clicking anywhere in the window and dragging it around.

Minimenu

Key Function
Shoulder Buttons Move left or right through the categories
D-pad move through the PNDs and folders
Select Options
Game A Toggle detail panel
Game B or Start Select item (run PND or go inside folder)
Game Y Read documentation for PND, if it exists
Game X If detail panel is on, remind yourself of controls
Keyboard Type a letter to skip to the first PND beginning with the letter.
Space App menu
  • In minimenu, pressing Y when an icon is highlighted brings up the readme files.

Keycodes

This table might be useful if you're trying to map keys in some program, or writing a program:

Pandora button Keycode Hex Equivalent
Space key 32 0020
Pandora key 147 0093
D-pad up key 273 0111
D-pad down key 274 0112
D-pad right key 275 0113
D-pad left key 276 0114
Game A key 278 0116
Game B key 279 0117
Game Y key 280 0118
Game X key 281 0119
Shoulder L key 303 012f
Shoulder R key 305 0131
Select key 306 0132
Start key 308 0134

Sources: 1, 2, 3 4 (note: the last two links give different keycodes for the gaming buttons. Possibly both numbers will work?)

Other notes

See also:

History

In the months before the first preorders were taken, there was much discussion and community voting about the best layout. This was one of the final votes. The final layout was different from either one of the two most popular community proposals, but incorporated some of the suggestions such as having a "Pandora" button.

Matrix

The matrix layour is detailed on p.20 of the Hardware hacker's guide (here). A more readable version appears below. A .svg version of the Pandora's keyboard layout (made by cosurgi) can be downloaded here.