We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 831a04a commit 6f72aa2Copy full SHA for 6f72aa2
src/nmi/pollcontroller.asm
@@ -66,6 +66,21 @@ pollController:
66
67
diffOldAndNewButtons:
68
ldx #$01
69
+.if KEYBOARD = 1
70
+; clear controller input when keyboard is active
71
+; disable keyboard when reset sequence is pressed
72
+ lda keyboardFlag
73
+ beq @diffForPlayer
74
+ lda newlyPressedButtons_player1
75
+ and #BUTTON_B|BUTTON_A|BUTTON_SELECT|BUTTON_START
76
+ cmp #BUTTON_B|BUTTON_A|BUTTON_SELECT|BUTTON_START
77
+ php
78
+ lda #$00
79
+ sta newlyPressedButtons_player1
80
+ plp
81
+ bne @diffForPlayer
82
+ sta keyboardFlag
83
+.endif
84
@diffForPlayer:
85
lda newlyPressedButtons_player1,x
86
tay
0 commit comments