mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[ion/events_keyboard] Remove unused cases
This commit is contained in:
committed by
RubenNumworks
parent
1242258992
commit
9ab3558cfe
@@ -72,8 +72,6 @@ static Event eventFromSDLKeyboardEvent(SDL_KeyboardEvent event) {
|
||||
|
||||
if (event.keysym.mod & KMOD_CTRL) {
|
||||
switch (event.keysym.sym) {
|
||||
case SDLK_BACKSPACE:
|
||||
return Clear;
|
||||
case SDLK_x:
|
||||
return Cut;
|
||||
case SDLK_c:
|
||||
@@ -94,14 +92,8 @@ static Event eventFromSDLKeyboardEvent(SDL_KeyboardEvent event) {
|
||||
}
|
||||
}
|
||||
switch (event.keysym.sym) {
|
||||
case SDLK_ESCAPE:
|
||||
return Home;
|
||||
case SDLK_RETURN:
|
||||
return OK;
|
||||
case SDLK_v:
|
||||
return Var;
|
||||
case SDLK_BACKSPACE:
|
||||
return Clear;
|
||||
case SDLK_x:
|
||||
return Exp;
|
||||
case SDLK_n:
|
||||
@@ -130,35 +122,7 @@ static Event eventFromSDLKeyboardEvent(SDL_KeyboardEvent event) {
|
||||
return Ans;
|
||||
}
|
||||
}
|
||||
if (event.keysym.mod & KMOD_SHIFT) {
|
||||
switch(event.keysym.sym) {
|
||||
case SDLK_UP:
|
||||
return ShiftUp;
|
||||
case SDLK_DOWN:
|
||||
return ShiftDown;
|
||||
case SDLK_LEFT:
|
||||
return ShiftLeft;
|
||||
case SDLK_RIGHT:
|
||||
return ShiftRight;
|
||||
}
|
||||
}
|
||||
switch(event.keysym.sym) {
|
||||
case SDLK_UP:
|
||||
return Up;
|
||||
case SDLK_DOWN:
|
||||
return Down;
|
||||
case SDLK_LEFT:
|
||||
return Left;
|
||||
case SDLK_RIGHT:
|
||||
return Right;
|
||||
case SDLK_RETURN:
|
||||
return EXE;
|
||||
case SDLK_ESCAPE:
|
||||
return Back;
|
||||
case SDLK_TAB:
|
||||
return Toolbox;
|
||||
case SDLK_BACKSPACE:
|
||||
return Backspace;
|
||||
case SDLK_AC_BACK:
|
||||
return Termination;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user