forked from KolibriOS/kolibrios
house.3ds: smaller version by macgub
view3ds: mouse scroll support in edit mode; some keys support (+/-,up,down,left,right) fb2read: search feature by akron1 git-svn-id: svn://kolibrios.org@8025 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2152b380e3
commit
8ef9f2b1e7
Binary file not shown.
Binary file not shown.
@ -344,7 +344,7 @@ base_vector:
|
|||||||
if Ext=SSE2
|
if Ext=SSE2
|
||||||
db ' (SSE2)'
|
db ' (SSE2)'
|
||||||
end if
|
end if
|
||||||
db ' 0.069',0
|
db ' 0.069b',0
|
||||||
labellen:
|
labellen:
|
||||||
STRdata db '-1 '
|
STRdata db '-1 '
|
||||||
|
|
||||||
|
@ -161,16 +161,26 @@ still:
|
|||||||
@@:
|
@@:
|
||||||
int 0x40
|
int 0x40
|
||||||
|
|
||||||
cmp eax,1 ; redraw request ?
|
cmp eax,1 ; redraw event ?
|
||||||
je red
|
je red
|
||||||
cmp eax,2 ; key in buffer ?
|
cmp eax,2 ; key event ?
|
||||||
je key
|
je key
|
||||||
cmp eax,3 ; button in buffer ?
|
cmp eax,3 ; button event ?
|
||||||
je button
|
je button
|
||||||
cmp eax,6
|
cmp eax,6 ; mouse event ?
|
||||||
jne @f
|
jne @f
|
||||||
cmp [edit_flag],1
|
cmp [edit_flag],1 ; handle mouse only when edit is active
|
||||||
jne @f
|
jne @f
|
||||||
|
|
||||||
|
mov eax,37
|
||||||
|
mov ebx,7 ; get mouse scroll
|
||||||
|
int 0x40
|
||||||
|
and eax, 0xFFFF ; check only vertial
|
||||||
|
cmp eax, 65535
|
||||||
|
je button.zoom_in
|
||||||
|
cmp eax, 1
|
||||||
|
je button.zoom_out
|
||||||
|
|
||||||
mov eax,37
|
mov eax,37
|
||||||
mov ebx,3 ;read mouse state
|
mov ebx,3 ;read mouse state
|
||||||
int 0x40
|
int 0x40
|
||||||
@ -208,6 +218,22 @@ still:
|
|||||||
key: ; key
|
key: ; key
|
||||||
mov eax,2 ; just read it and ignore
|
mov eax,2 ; just read it and ignore
|
||||||
int 0x40
|
int 0x40
|
||||||
|
|
||||||
|
cmp ah, '+'
|
||||||
|
je button.zoom_in
|
||||||
|
cmp ah, '='
|
||||||
|
je button.zoom_in
|
||||||
|
cmp ah, '-'
|
||||||
|
je button.zoom_out
|
||||||
|
cmp ah, 176 ;left
|
||||||
|
je add_vec_buttons.x_minus
|
||||||
|
cmp ah, 179 ;right
|
||||||
|
je add_vec_buttons.x_plus
|
||||||
|
cmp ah, 178 ;up
|
||||||
|
je add_vec_buttons.y_minus
|
||||||
|
cmp ah, 177 ;down
|
||||||
|
je add_vec_buttons.y_plus
|
||||||
|
|
||||||
jmp noclose
|
jmp noclose
|
||||||
|
|
||||||
button: ; button
|
button: ; button
|
||||||
@ -242,6 +268,7 @@ still:
|
|||||||
; ah = 5 -> scale-
|
; ah = 5 -> scale-
|
||||||
cmp ah,5
|
cmp ah,5
|
||||||
jne @f
|
jne @f
|
||||||
|
.zoom_out:
|
||||||
mov dword[scale],0.7
|
mov dword[scale],0.7
|
||||||
fninit
|
fninit
|
||||||
fld [rsscale]
|
fld [rsscale]
|
||||||
@ -251,6 +278,7 @@ still:
|
|||||||
@@:
|
@@:
|
||||||
cmp ah,6 ; ah = 6 -> scale+
|
cmp ah,6 ; ah = 6 -> scale+
|
||||||
jne @f
|
jne @f
|
||||||
|
.zoom_in:
|
||||||
mov dword[scale],1.3
|
mov dword[scale],1.3
|
||||||
fninit
|
fninit
|
||||||
fld [rsscale]
|
fld [rsscale]
|
||||||
@ -357,6 +385,7 @@ still:
|
|||||||
jne @f
|
jne @f
|
||||||
; cmp [move_flag],2
|
; cmp [move_flag],2
|
||||||
; je .set_light1
|
; je .set_light1
|
||||||
|
.y_minus:
|
||||||
sub [vect_y],10
|
sub [vect_y],10
|
||||||
jmp .next
|
jmp .next
|
||||||
@@:
|
@@:
|
||||||
@ -396,6 +425,7 @@ still:
|
|||||||
jne .next2
|
jne .next2
|
||||||
cmp [move_flag],0
|
cmp [move_flag],0
|
||||||
jne @f
|
jne @f
|
||||||
|
.x_minus:
|
||||||
sub [vect_x],10
|
sub [vect_x],10
|
||||||
jmp .next2
|
jmp .next2
|
||||||
@@:
|
@@:
|
||||||
@ -413,6 +443,7 @@ still:
|
|||||||
jne .next3
|
jne .next3
|
||||||
cmp [move_flag],0
|
cmp [move_flag],0
|
||||||
jne @f
|
jne @f
|
||||||
|
.x_plus:
|
||||||
add [vect_x],10
|
add [vect_x],10
|
||||||
jmp .next3
|
jmp .next3
|
||||||
@@:
|
@@:
|
||||||
@ -441,6 +472,7 @@ still:
|
|||||||
cmp [move_flag],0
|
cmp [move_flag],0
|
||||||
jne @f
|
jne @f
|
||||||
; call add_vector
|
; call add_vector
|
||||||
|
.y_plus:
|
||||||
add [vect_y],10
|
add [vect_y],10
|
||||||
jmp .next5
|
jmp .next5
|
||||||
@@:
|
@@:
|
||||||
|
Loading…
Reference in New Issue
Block a user