1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-11-22 00:52:22 -05:00

Create C64_matrix.sc

This commit is contained in:
Jarno Lehtinen 2019-02-09 12:25:06 +02:00 committed by GitHub
parent 15b13e19e0
commit 1f030794bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

200
C64_keyboard/C64_matrix.sc Normal file
View File

@ -0,0 +1,200 @@
# Matrix setup for COMMODORE 64
# Edited by mcgurk, originally made by Evan Allen / abzman
#led caps PD0
#led num PD1
#led scroll PF0
matrix
scanrate 1
debounce 5
blocking 1
sense PB6 PB2 PB3 PB1 PF7 PF6 PF5 PF4 PD3
strobe PD1 1 ESC LCTRL PAUSE SPACE LGUI Q 2 UNASSIGNED
strobe PD0 3 W A LSHIFT Z S E 4 UNASSIGNED
strobe PD4 5 R D X C F T 6 UNASSIGNED
strobe PC6 7 Y G V B H U 8 UNASSIGNED
strobe PD7 9 I J N M K O 0 UNASSIGNED
strobe PE6 LANG_1 P L COMMA PERIOD LANG_3 LANG_4 MINUS UNASSIGNED
strobe PB4 BACKSLASH LANG_2 SEMICOLON SLASH RSHIFT EQUAL INSERT HOME LANG_5
strobe PB5 BACKSPACE ENTER RIGHT DOWN F1 F3 F5 F7 UNASSIGNED
end
macroblock
macro RIGHT SHIFT #LEFT
PUSH_META CLEAR_META ALL
PRESS LEFT
POP_ALL_META
endmacro
macro DOWN SHIFT #UP
PUSH_META CLEAR_META ALL
PRESS UP
POP_ALL_META
endmacro
macro 2 SHIFT #2
PUSH_META CLEAR_META ALL
MAKE LSHIFT
PRESS QUOTE
BREAK LSHIFT
POP_ALL_META
endmacro
macro 6 SHIFT #6
PUSH_META CLEAR_META ALL
MAKE LSHIFT
PRESS 7
BREAK LSHIFT
POP_ALL_META
endmacro
macro 7 SHIFT #7
PUSH_META CLEAR_META ALL
PRESS QUOTE
POP_ALL_META
endmacro
macro 8 SHIFT #8
PUSH_META CLEAR_META ALL
MAKE LSHIFT
PRESS 9
BREAK LSHIFT
POP_ALL_META
endmacro
macro 9 SHIFT #9
PUSH_META CLEAR_META ALL
MAKE LSHIFT
PRESS 0
BREAK LSHIFT
POP_ALL_META
endmacro
macro 0 SHIFT #0
PUSH_META CLEAR_META ALL
POP_ALL_META
endmacro
macro LANG_1 SHIFT #+
PUSH_META CLEAR_META ALL
POP_ALL_META
endmacro
macro MINUS SHIFT #-
PUSH_META CLEAR_META ALL
POP_ALL_META
endmacro
macro LANG_4 SHIFT #@
PUSH_META CLEAR_META ALL
POP_ALL_META
endmacro
macro LANG_2 SHIFT #*
PUSH_META CLEAR_META ALL
POP_ALL_META
endmacro
macro EQUAL SHIFT #=
PUSH_META CLEAR_META ALL
POP_ALL_META
endmacro
endblock
macroblock
macro LANG_1 #+
PUSH_META ASSIGN_META LSHIFT
PRESS EQUAL
POP_META
endmacro
macro LANG_2 #*
PUSH_META ASSIGN_META LSHIFT
PRESS 8
POP_META
endmacro
macro LANG_3 SHIFT #[
PUSH_META CLEAR_META ALL
PRESS LEFT_BRACE
POP_ALL_META
endmacro
macro SEMICOLON SHIFT #]
PUSH_META CLEAR_META ALL
PRESS RIGHT_BRACE
POP_ALL_META
endmacro
macro LANG_3 #:
PUSH_META ASSIGN_META LSHIFT
PRESS SEMICOLON
POP_META
endmacro
macro LANG_4 #@
PUSH_META ASSIGN_META LSHIFT
PRESS 2
POP_META
endmacro
macro LANG_5 #RESTORE
PUSH_META ASSIGN_META LALT
PRESS F4
POP_META
endmacro
endblock
macroblock
macro F1 GUI #F2
PUSH_META CLEAR_META ALL
PRESS F2
POP_ALL_META
endmacro
macro F3 GUI #F4
PUSH_META CLEAR_META ALL
PRESS F4
POP_ALL_META
endmacro
macro F5 GUI #F6
PUSH_META CLEAR_META ALL
PRESS F6
POP_ALL_META
endmacro
macro F7 GUI #F8
PUSH_META CLEAR_META ALL
PRESS F8
POP_ALL_META
endmacro
macro W GUI #WASD
PUSH_META CLEAR_META ALL
PRESS UP
POP_ALL_META
endmacro
macro A GUI #WASD
PUSH_META CLEAR_META ALL
PRESS LEFT
POP_ALL_META
endmacro
macro S GUI #WASD
PUSH_META CLEAR_META ALL
PRESS DOWN
POP_ALL_META
endmacro
macro D GUI #WASD
PUSH_META CLEAR_META ALL
PRESS RIGHT
POP_ALL_META
endmacro
endblock