Skip to content

Commit d999b6d

Browse files
committed
move things around
1 parent 4480354 commit d999b6d

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

src/keyboard/buttonmap.asm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
; see keymap.asm for full list of keys
2+
3+
kbMappedUp = keyK
4+
kbMappedDown = keyJ
5+
kbMappedLeft = keyH
6+
kbMappedRight = keyL
7+
kbMappedB = keyD
8+
kbMappedA = keyF
9+
kbMappedSelect = keyShiftLeft
10+
kbMappedStart = keyReturn
File renamed without changes.

src/nmi/pollkeyboard.asm renamed to src/keyboard/poll.asm

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
.include "keyboardmap.asm"
2-
3-
; for remapping, see above map file for full list
4-
kbMappedUp = keyK
5-
kbMappedDown = keyJ
6-
kbMappedLeft = keyH
7-
kbMappedRight = keyL
8-
kbMappedB = keyD
9-
kbMappedA = keyF
10-
kbMappedSelect = keyShiftLeft
11-
kbMappedStart = keyReturn
12-
13-
141
; https://www.nesdev.org/wiki/Family_BASIC_Keyboard
152

163
; Input ($4016 write)

src/main.asm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ mainLoop:
3636
.include "nmi/render.asm"
3737
.include "nmi/pollcontroller.asm"
3838
.if KEYBOARD
39-
.include "nmi/pollkeyboard.asm"
39+
.include "keyboard/map.asm"
40+
.include "keyboard/buttonmap.asm"
41+
.include "keyboard/poll.asm"
4042
.endif
4143

4244
.include "gamemode/branch.asm"

0 commit comments

Comments
 (0)