Keyboard remap for more natural use. Host backspace in back arrow and host del is delete

This commit is contained in:
Ivan Izaguirre 2019-05-24 00:41:43 +02:00
parent 3b07b77ea2
commit cf4a7e2115
1 changed files with 3 additions and 1 deletions

View File

@ -66,8 +66,10 @@ func (k *sdlKeyboard) putKey(keyEvent *sdl.KeyboardEvent) {
switch key.Sym {
case sdl.K_ESCAPE:
result = 27
case sdl.K_BACKSPACE:
case sdl.K_DELETE:
result = 24
case sdl.K_BACKSPACE:
result = 8
case sdl.K_RETURN:
result = 13
case sdl.K_RETURN2: