Skip to content

Commit d056195

Browse files
authored
Merge pull request #45 from csboo/windows-input-fix
windows input fixes
2 parents c4854bd + 25efb44 commit d056195

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

input.hpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ struct Input {
133133
char ignore_byte = 0;
134134
auto input = Input(SpecKey::None);
135135
#ifdef _WIN32
136-
if (byte == 0 || byte == 224) {
136+
if (byte == 0 || byte == 224 || byte == -32) {
137137
char next_byte = get_char();
138138
switch (next_byte) {
139139
case 59:
@@ -144,12 +144,6 @@ struct Input {
144144
return Input(SpecKey::F3);
145145
case 62:
146146
return Input(SpecKey::F4);
147-
default:
148-
break;
149-
}
150-
} else if (byte == -32) {
151-
char next_byte = get_char();
152-
switch (next_byte) {
153147
case 72:
154148
return Input(Arrow::Up);
155149
case 75:

0 commit comments

Comments
 (0)