GUI state select linux key checks fixed and commented.
This commit is contained in:
@@ -2397,17 +2397,14 @@ GUIStateSelKeys:
|
|||||||
ret
|
ret
|
||||||
.noenter
|
.noenter
|
||||||
%ifdef __LINUX__
|
%ifdef __LINUX__
|
||||||
cmp al,92
|
cmp al,92 ; linux keypad left
|
||||||
je .yesleft
|
je .yesleft
|
||||||
cmp dword[numlockptr],1
|
cmp dword[numlockptr],1 ; if numlock on, disregard numpad
|
||||||
je .noleft
|
je .noleft
|
||||||
cmp al,75
|
%endif
|
||||||
|
cmp al,75 ; linux numpad left, non-linux num/keypad left
|
||||||
jne .noleft
|
jne .noleft
|
||||||
.yesleft
|
.yesleft
|
||||||
%else
|
|
||||||
cmp al,75
|
|
||||||
jne .noleft
|
|
||||||
%endif
|
|
||||||
mov ebx,[statefileloc]
|
mov ebx,[statefileloc]
|
||||||
mov cl,[fnamest+ebx]
|
mov cl,[fnamest+ebx]
|
||||||
cmp cl,'t'
|
cmp cl,'t'
|
||||||
@@ -2429,17 +2426,14 @@ GUIStateSelKeys:
|
|||||||
jmp .done
|
jmp .done
|
||||||
.noleft
|
.noleft
|
||||||
%ifdef __LINUX__
|
%ifdef __LINUX__
|
||||||
cmp al,94
|
cmp al,94 ; linux keypad right
|
||||||
je .yesright
|
je .yesright
|
||||||
cmp dword[numlockptr],1
|
cmp dword[numlockptr],1 ; if numlock on, disregard numpad
|
||||||
je .noright
|
je .noright
|
||||||
cmp al,77
|
%endif
|
||||||
|
cmp al,77 ; linux numpad right, non-linux num/keypad right
|
||||||
jne .noright
|
jne .noright
|
||||||
.yesright
|
.yesright
|
||||||
%else
|
|
||||||
cmp al,77
|
|
||||||
jne .noright
|
|
||||||
%endif
|
|
||||||
mov ebx,[statefileloc]
|
mov ebx,[statefileloc]
|
||||||
mov cl,[fnamest+ebx]
|
mov cl,[fnamest+ebx]
|
||||||
cmp cl,'t'
|
cmp cl,'t'
|
||||||
@@ -2461,22 +2455,23 @@ GUIStateSelKeys:
|
|||||||
jmp .done
|
jmp .done
|
||||||
.noright
|
.noright
|
||||||
%ifdef __LINUX__
|
%ifdef __LINUX__
|
||||||
cmp al,90
|
cmp al,90 ; linux keypad up
|
||||||
je .vert
|
je .yesvert
|
||||||
cmp dword[numlockptr],1
|
cmp dword[numlockptr],1 ; if numlock on, disregard numpad
|
||||||
je .novert
|
je .noup
|
||||||
%endif
|
%endif
|
||||||
cmp al,72
|
cmp al,72 ; linux numpad up, non-linux num/keypad up
|
||||||
je .vert
|
je .yesvert
|
||||||
|
.noup
|
||||||
%ifdef __LINUX__
|
%ifdef __LINUX__
|
||||||
cmp al,96
|
cmp al,96 ; linux keypad down
|
||||||
je .vert
|
je .yesvert
|
||||||
cmp dword[numlockptr],1
|
cmp dword[numlockptr],1 ; if numlock on, disregard numpad
|
||||||
je .novert
|
je .novert
|
||||||
%endif
|
%endif
|
||||||
cmp al,80
|
cmp al,80 ; linux numpad down, non-linux num/keypad down
|
||||||
jne .novert
|
jne .novert
|
||||||
.vert
|
.yesvert
|
||||||
mov ebx,[statefileloc]
|
mov ebx,[statefileloc]
|
||||||
mov cl,[fnamest+ebx]
|
mov cl,[fnamest+ebx]
|
||||||
cmp cl,'t'
|
cmp cl,'t'
|
||||||
@@ -2495,11 +2490,9 @@ GUIStateSelKeys:
|
|||||||
jmp .done
|
jmp .done
|
||||||
.noabove
|
.noabove
|
||||||
add cl,5
|
add cl,5
|
||||||
jmp .done
|
|
||||||
.novert
|
|
||||||
ret
|
|
||||||
.done
|
.done
|
||||||
mov [fnamest+ebx],cl
|
mov [fnamest+ebx],cl
|
||||||
|
.novert
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; Allows you to select boxes with the arrow keys, Enter to choose
|
; Allows you to select boxes with the arrow keys, Enter to choose
|
||||||
|
|||||||
Reference in New Issue
Block a user