nueva tabla de controlador
This commit is contained in:
parent
5307f92bbc
commit
b08f7040a7
|
@ -25,17 +25,24 @@ el byte de botón codifica en cada uno de sus ocho bits el estado de ocho "boton
|
|||
numerando los bits de derecha a izquierda y de 0 a 7, las teclas correspondientes (y los botones de NES) son
|
||||
|
||||
+ <table>
|
||||
+ <tr><th>bit 7</th><th>bit 6</th><th>bit 5</th><th>bit 4</th><th>bit 3</th><th>bit 2</th><th>bit 1</th><th>bit 0</th></tr>
|
||||
+ <tr><td>Derecha</td><td>Izquierda</td><td>Abajo</td><td>Arriba</td><td>Home ("Start" o iniciar))</td><td>Shift ("Select" o seleccionar)</td><td>Alt (botón B)</td><td>Ctrl (botón A)</td></tr>
|
||||
+ <tr><th>bit</th><th>tecla</th><th>botón</th></tr>
|
||||
+ <tr><td class="num">7</td><td colspan="2">Derecha</td></tr>
|
||||
+ <tr><td class="num">6</td><td colspan="2">Izquierda</td></tr>
|
||||
+ <tr><td class="num">5</td><td colspan="2">Abajo</td></tr>
|
||||
+ <tr><td class="num">4</td><td colspan="2">Arriba</td></tr>
|
||||
+ <tr><td class="num">3</td><td>Home</td><td>Iniciar</td></tr>
|
||||
+ <tr><td class="num">2</td><td>Shift</td><td>Selecccionar</td></tr>
|
||||
+ <tr><td class="num">1</td><td>Alt</td><td>A</td></tr>
|
||||
+ <tr><td class="num">0</td><td>Ctrl</td><td>B</td></tr>
|
||||
+ </table>
|
||||
& * 0: Ctrl (botón A)
|
||||
& * 1: Alt (botón B)
|
||||
& * 2: Shift (botón "Select" o seleccionar)
|
||||
& * 3: Home (botón "Start" o iniciar)
|
||||
& * 4: Arriba
|
||||
& * 5: Abajo
|
||||
& * 6: Izquierda
|
||||
& * 7: Derecha
|
||||
& * 6: Izquierda
|
||||
& * 5: Abajo
|
||||
& * 4: Arriba
|
||||
& * 3: Home (Iniciar)
|
||||
& * 2: Shift (Selecccionar)
|
||||
& * 1: Alt (botón B)
|
||||
& * 0: Ctrl (botón A)
|
||||
|
||||
codificar los estados de los botones de esta manera nos permite presionar y leer muchas de estas teclas al mismo tiempo.
|
||||
|
||||
|
|
|
@ -25,17 +25,24 @@ the button byte encodes in each of its eight bits the state of eight different "
|
|||
numbering the bits from right to left, and from 0 to 7, the corresponding keys (and NES buttons) are:
|
||||
|
||||
+ <table>
|
||||
+ <tr><th>bit 7</th><th>bit 6</th><th>bit 5</th><th>bit 4</th><th>bit 3</th><th>bit 2</th><th>bit 1</th><th>bit 0</th></tr>
|
||||
+ <tr><td>Right</td><td>Left</td><td>Down</td><td>Up</td><td>Home (Start)</td><td>Shift (Select)</td><td>Alt (B)</td><td>Ctrl (A)</td></tr>
|
||||
+ <tr><th>bit</th><th>key</th><th>button</th></tr>
|
||||
+ <tr><td class="num">7</td><td colspan="2">Right</td></tr>
|
||||
+ <tr><td class="num">6</td><td colspan="2">Left</td></tr>
|
||||
+ <tr><td class="num">5</td><td colspan="2">Down</td></tr>
|
||||
+ <tr><td class="num">4</td><td colspan="2">Up</td></tr>
|
||||
+ <tr><td class="num">3</td><td>Home</td><td>Start</td></tr>
|
||||
+ <tr><td class="num">2</td><td>Shift</td><td>Select</td></tr>
|
||||
+ <tr><td class="num">1</td><td>Alt</td><td>A</td></tr>
|
||||
+ <tr><td class="num">0</td><td>Ctrl</td><td>B</td></tr>
|
||||
+ </table>
|
||||
& * 0: Ctrl (button A)
|
||||
& * 1: Alt (button B)
|
||||
& * 2: Shift (Select button)
|
||||
& * 3: Home (Start button)
|
||||
& * 4: Up
|
||||
& * 5: Down
|
||||
& * 6: Left
|
||||
& * 7: Right
|
||||
& * 6: Left
|
||||
& * 5: Down
|
||||
& * 4: Up
|
||||
& * 3: Home (Start button)
|
||||
& * 2: Shift (Select button)
|
||||
& * 1: Alt (button B)
|
||||
& * 0: Ctrl (button A)
|
||||
|
||||
enconding the states of the buttons in this way allows us to press and read many of these keys at the same time.
|
||||
|
||||
|
|
Loading…
Reference in New Issue