Keyboard remap for more natural use. Host backspace in back arrow and host del is delete
This commit is contained in:
parent
3b07b77ea2
commit
cf4a7e2115
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue