drop .[] chars as they dont work on linux and macos for me out of the box

master
bel 2023-03-24 15:28:17 -06:00
parent b4e4de82ae
commit edcea37148
9 changed files with 64 additions and 68 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/mayhem-party
**/*.sw*

View File

@ -15,7 +15,7 @@
Each client needs 1 executable and 1 env file with a unique set of buttons Each client needs 1 executable and 1 env file with a unique set of buttons
> 10 buttons per player > 10 buttons per player
> `go doc key Undef | grep Key | grep -v Undef | wc -l` total (54) > `go doc key Undef | grep Key | grep -v Undef | wc -l` total (51)
The server cannot be a client because math. Maybe a VM on the client as a server would work tho. The server cannot be a client because math. Maybe a VM on the client as a server would work tho.

View File

@ -29,7 +29,7 @@
'h': 'n' 'h': 'n'
'j': 'm' 'j': 'm'
'k': ',' 'k': ','
'l': '.' 'l': '-'
';': '/' ';': '/'
# player 4 controls 5 # player 4 controls 5
'z': '!' 'z': '!'
@ -40,7 +40,7 @@
'n': '^' 'n': '^'
'm': '&' 'm': '&'
',': '*' ',': '*'
'.': '(' '-': '('
'/': ')' '/': ')'
# player 5 controls 1 # player 5 controls 1
'!': '1' '!': '1'

View File

@ -18,7 +18,7 @@
'y': 'n' 'y': 'n'
'u': 'm' 'u': 'm'
'i': ',' 'i': ','
'o': '.' 'o': '-'
'p': '/' 'p': '/'
# player 3 controls 5 # player 3 controls 5
'a': '!' 'a': '!'
@ -40,7 +40,7 @@
'n': '6' 'n': '6'
'm': '7' 'm': '7'
',': '8' ',': '8'
'.': '9' '-': '9'
'/': '0' '/': '0'
# player 5 controls 2 # player 5 controls 2
'!': 'q' '!': 'q'

View File

@ -7,7 +7,7 @@
'6': 'n' '6': 'n'
'7': 'm' '7': 'm'
'8': ',' '8': ','
'9': '.' '9': '-'
'0': '/' '0': '/'
# player 2 controls 5 # player 2 controls 5
'q': '!' 'q': '!'
@ -40,7 +40,7 @@
'n': 'y' 'n': 'y'
'm': 'u' 'm': 'u'
',': 'i' ',': 'i'
'.': 'o' '-': 'o'
'/': 'p' '/': 'p'
# player 5 controls 3 # player 5 controls 3
'!': 'a' '!': 'a'

View File

@ -40,7 +40,7 @@
'n': 'h' 'n': 'h'
'm': 'j' 'm': 'j'
',': 'k' ',': 'k'
'.': 'l' '-': 'l'
'/': ';' '/': ';'
# player 5 controls 4 # player 5 controls 4
'!': 'z' '!': 'z'
@ -51,5 +51,5 @@
'^': 'n' '^': 'n'
'&': 'm' '&': 'm'
'*': ',' '*': ','
'(': '.' '(': '-'
')': '/' ')': '/'

View File

@ -14,7 +14,7 @@ streams:
r: 'n' r: 'n'
a: 'm' a: 'm'
b: ',' b: ','
x: '.' x: '-'
y: '/' y: '/'
output: output:
engine: engine:

View File

@ -49,11 +49,8 @@ var (
'(': F9, '(': F9,
')': F10, ')': F10,
',': PComma, ',': PComma,
'.': PPeriod,
'/': PFSlash, '/': PFSlash,
';': PSemicolon, ';': PSemicolon,
'[': POpenBracket,
']': PCloseBracket,
'-': PMinus, '-': PMinus,
'=': PEqual, '=': PEqual,
} }

View File

@ -53,11 +53,8 @@ const (
F9 = Key(keybd_event.VK_F9) F9 = Key(keybd_event.VK_F9)
F10 = Key(keybd_event.VK_F10) F10 = Key(keybd_event.VK_F10)
PComma = Key(keybd_event.VK_COMMA) PComma = Key(keybd_event.VK_COMMA)
PPeriod = Key(keybd_event.VK_Period)
PFSlash = Key(keybd_event.VK_BACKSLASH) PFSlash = Key(keybd_event.VK_BACKSLASH)
PSemicolon = Key(keybd_event.VK_SEMICOLON) PSemicolon = Key(keybd_event.VK_SEMICOLON)
POpenBracket = Key(keybd_event.VK_LeftBracket)
PCloseBracket = Key(keybd_event.VK_RightBracket)
PMinus = Key(keybd_event.VK_MINUS) PMinus = Key(keybd_event.VK_MINUS)
PEqual = Key(keybd_event.VK_EQUAL) PEqual = Key(keybd_event.VK_EQUAL)
) )