GLBasic forum

Codesnippets => Code Snippets => Topic started by: spicypixel on 2011-Oct-09

Title: Tiny Cursor Key Snippet
Post by: spicypixel on 2011-Oct-09
Code (glbasic) Select

// .-------------------------------.
// | Check Cursor Keys             |
// '-------------------------------'
dx = KEY(205)-KEY(203)
dy = KEY(208)-KEY(200)
INC x,dx ; INC y,dy
Title: Re: Tiny Cursor Key Snippet
Post by: bigsofty on 2011-Oct-09
Nice, lots of directions from only 3 lines!  :D
Title: Re: Tiny Cursor Key Snippet
Post by: Ruidesco on 2011-Oct-09
Fantastic! :good:
Title: Re: Tiny Cursor Key Snippet
Post by: kanonet on 2011-Oct-11
Old, but still good. =D
http://www.glbasic.com/forum/index.php?topic=1019.0

Btw i like the 2-line version more.
Title: Re: Tiny Cursor Key Snippet
Post by: spicypixel on 2011-Oct-11
Quote from: kanonet on 2011-Oct-11
Old, but still good. =D
http://www.glbasic.com/forum/index.php?topic=1019.0

Btw i like the 2-line version more.

Haha love it too :) Uber Optimisation :D