(m291) Added scrolling
This commit is contained in:
parent
615f87dff8
commit
42bd3225eb
|
@ -75,6 +75,8 @@
|
||||||
BRK
|
BRK
|
||||||
|
|
||||||
@on-mouse ( -> )
|
@on-mouse ( -> )
|
||||||
|
.Mouse/scrolly-lb DEI DUP ?&scroll
|
||||||
|
POP
|
||||||
( | cursor )
|
( | cursor )
|
||||||
#c1 ;touch-chr/down ;touch-chr .Mouse/state DEI ?{ SWP2 }
|
#c1 ;touch-chr/down ;touch-chr .Mouse/state DEI ?{ SWP2 }
|
||||||
POP2 <update-cursor>
|
POP2 <update-cursor>
|
||||||
|
@ -113,6 +115,13 @@
|
||||||
.Mouse/x DEI2 #0008 SUB2 DUP2 #00e7 GTH2 ?{ DUP2 <seek> }
|
.Mouse/x DEI2 #0008 SUB2 DUP2 #00e7 GTH2 ?{ DUP2 <seek> }
|
||||||
POP2 BRK
|
POP2 BRK
|
||||||
|
|
||||||
|
&scroll ( distance -> )
|
||||||
|
.selection/scroll LDZ ADD
|
||||||
|
( above ) DUP #ff EQU ?{
|
||||||
|
( below ) DUP #18 ADD .lines/tracks LDZ GTH ?{ DUP .selection/scroll STZ
|
||||||
|
<redraw> } }
|
||||||
|
POP BRK
|
||||||
|
|
||||||
@on-control ( -> )
|
@on-control ( -> )
|
||||||
( | mod )
|
( | mod )
|
||||||
[ LIT2 04 -Controller/button ] DEI AND #00 NEQ .selection/mod STZ
|
[ LIT2 04 -Controller/button ] DEI AND #00 NEQ .selection/mod STZ
|
||||||
|
@ -224,10 +233,12 @@
|
||||||
&folder ( id -- )
|
&folder ( id -- )
|
||||||
#00 SWP
|
#00 SWP
|
||||||
( CELLSIZE ) #70 SFT2 ;mem/folders ADD2
|
( CELLSIZE ) #70 SFT2 ;mem/folders ADD2
|
||||||
( >> ) [ LIT2 00 -selection ] STZ
|
( > ) [ LIT2 00 -selection ] STZ
|
||||||
|
( > ) [ LIT2 00 -selection/scroll ] STZ
|
||||||
path/<push> !<refresh-dir>
|
path/<push> !<refresh-dir>
|
||||||
|
|
||||||
@<escape> ( -- )
|
@<escape> ( -- )
|
||||||
|
( > ) [ LIT2 00 -selection/scroll ] STZ
|
||||||
;path/null LDA ?{ JMP2r }
|
;path/null LDA ?{ JMP2r }
|
||||||
path/pop !<refresh-dir>
|
path/pop !<refresh-dir>
|
||||||
|
|
||||||
|
@ -437,21 +448,20 @@
|
||||||
#0008 .Screen/x DEO2
|
#0008 .Screen/x DEO2
|
||||||
#00 SWP2 ,&t STR2
|
#00 SWP2 ,&t STR2
|
||||||
&>l ( -- )
|
&>l ( -- )
|
||||||
DUP
|
( scroll ) DUP #18 LTH ?{ POP2 JMP2r }
|
||||||
( scroll ) #18 LTH ?{ POP2 JMP2r }
|
|
||||||
[ LITr 05 ]
|
[ LITr 05 ]
|
||||||
( | selected )
|
( | selected )
|
||||||
DUP [ LIT &sel $1 ] NEQ ?{
|
DUP [ LIT &sel $1 ] NEQ ?{
|
||||||
POPr [ LITr 06 ] ;fill-icn <draw-background> }
|
POPr [ LITr 06 ] ;fill-icn <draw-background> }
|
||||||
( | marker )
|
( | marker )
|
||||||
DUP .selection/track LDZ NEQ ?{
|
DUP .selection/scroll LDZ ADD .selection/track LDZ NEQ ?{
|
||||||
[ LIT2 15 -Screen/auto ] DEO
|
[ LIT2 15 -Screen/auto ] DEO
|
||||||
#0000 .Screen/x DEO2
|
#0000 .Screen/x DEO2
|
||||||
;poke-icn .Screen/addr DEO2
|
;poke-icn .Screen/addr DEO2
|
||||||
DUPr [ LITr -Screen/sprite ] DEOr }
|
DUPr [ LITr -Screen/sprite ] DEOr }
|
||||||
( | normal )
|
( | normal )
|
||||||
#0008 .Screen/x DEO2
|
#0008 .Screen/x DEO2
|
||||||
#00 OVR
|
#00 OVR .selection/scroll LDZ ADD
|
||||||
( CELLSIZE ) #70 SFT2 [ LIT2 &t $2 ] ADD2 STHr <draw-uf2>
|
( CELLSIZE ) #70 SFT2 [ LIT2 &t $2 ] ADD2 STHr <draw-uf2>
|
||||||
.Screen/y DEI2k #0010 ADD2 ROT DEO2
|
.Screen/y DEI2k #0010 ADD2 ROT DEO2
|
||||||
INC GTHk ?&>l
|
INC GTHk ?&>l
|
||||||
|
|
Loading…
Reference in New Issue