? Touch pad (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Touch pad

  • #1 ✎ 24 Splam Day Person I like the warm sunshine and wake up early! Express Yourself Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Im trying to make a cursor be controlled with a trackpad. I want it to be like a laptop where it adds the position to the current position (I cant really explain it) and not just equal the touch screen. Posted
  • #2 ✎ 1785 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Try something like this: ACLS SPSET 0,0 WHILE 1 VSYNC TOUCH OUT T,TX,TY IF T && OLD_T THEN X=X+(TX-OLD_TX) Y=Y+(TY-OLD_TY) ENDIF OLD_TX=TX OLD_TY=TY OLD_T=T SPOFS 0,X,Y WEND Posted
  • #3 ✎ 24 Splam Day Person I like the warm sunshine and wake up early! Express Yourself Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Thank you, but what does T && OLD_T mean? Posted Edited by Splam
  • #4 ✎ 652 IAmRalsei Forum Leader Hidden Achievements First Year My account is over 1 year old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength
    Thank you, but what does T && OLD_T mean?
    T=How long the screen has been touched
    Posted
  • #5 ✎ 24 Splam Day Person I like the warm sunshine and wake up early! Express Yourself Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Night Person I like the quiet night and sleep late. Express Yourself I'm talking about the && Posted
  • #6 ✎ 1785 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself && checks if both values are not 0 Posted