mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2025-01-30 23:00:14 -05:00
Update C64_matrix.sc
This commit is contained in:
parent
1f030794bf
commit
c121d0d688
@ -1,5 +1,4 @@
|
||||
# Matrix setup for COMMODORE 64
|
||||
# Edited by mcgurk, originally made by Evan Allen / abzman
|
||||
|
||||
#led caps PD0
|
||||
#led num PD1
|
||||
@ -10,191 +9,41 @@ matrix
|
||||
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
|
||||
sense PB6 PB2 PB3 PB1 PF7 PF6 PF5 PF4 PD3
|
||||
strobe PD1 1 BACK_QUOTE TAB ESC SPACE LCTRL 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 MINUS P L COMMA PERIOD SEMICOLON LEFT_BRACE EQUAL UNASSIGNED
|
||||
strobe PB4 INSERT RIGHT_BRACE QUOTE SLASH RSHIFT BACKSLASH DELETE HOME PAGE_UP
|
||||
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
|
||||
# arrow left = BACK_QUOTE (section/fraction)
|
||||
# pound = INSERT
|
||||
# restore = PAGE_UP
|
||||
# run/stop = ESC
|
||||
# commodore = LCTRL
|
||||
# arrow up = DELETE
|
||||
# asterisk = RIGHT_BRACE
|
||||
# minus = EQUAL
|
||||
# plus = MINUS
|
||||
# @ = LEFT_BRACE
|
||||
# ctrl = TAB
|
||||
# lshift = LSHIFT
|
||||
# rshift = RSHIFT
|
||||
# equal = BACKSLASH
|
||||
# colon = SEMICOLON
|
||||
# semicolon = QUOTE
|
||||
|
||||
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 #[
|
||||
macro F7 LCTRL #C= + F7 = F12
|
||||
PUSH_META CLEAR_META ALL
|
||||
PRESS LEFT_BRACE
|
||||
PRESS F12
|
||||
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
|
||||
# +,- ja £, * ja @ shiftillä
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user