mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-08-05 13:24:52 +00:00
Merge pull request #32 from ewenmcneill/verilog_keys
Fix verilog key handling for player 2
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
Switch test program.
|
||||
|
||||
Player 1 Keys: arrow keys + space + shift
|
||||
Player 2 Keys: A/D/W/S + Z + X
|
||||
Player 2 Keys: A/D/W/S + T + R
|
||||
*/
|
||||
module switches_top(clk, reset, hsync, vsync,
|
||||
switches_p1, switches_p2,
|
||||
|
@@ -47,12 +47,12 @@ var VERILOG_KEYCODE_MAP = makeKeycodeMap([
|
||||
[Keys.DOWN, 0, 0x8],
|
||||
[Keys.A, 0, 0x10],
|
||||
[Keys.B, 0, 0x20],
|
||||
[Keys.P2_LEFT, 0, 0x1],
|
||||
[Keys.P2_RIGHT, 0, 0x2],
|
||||
[Keys.P2_UP, 0, 0x4],
|
||||
[Keys.P2_DOWN, 0, 0x8],
|
||||
[Keys.P2_A, 0, 0x10],
|
||||
[Keys.P2_B, 0, 0x20],
|
||||
[Keys.P2_LEFT, 1, 0x1],
|
||||
[Keys.P2_RIGHT, 1, 0x2],
|
||||
[Keys.P2_UP, 1, 0x4],
|
||||
[Keys.P2_DOWN, 1, 0x8],
|
||||
[Keys.P2_A, 1, 0x10],
|
||||
[Keys.P2_B, 1, 0x20],
|
||||
[Keys.START, 2, 0x1],
|
||||
[Keys.P2_START, 2, 0x2],
|
||||
[Keys.SELECT, 2, 0x4],
|
||||
|
Reference in New Issue
Block a user