? Trouble with touchscreen (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
What's going on?? See: Site Update March 2022

Trouble with touchscreen

  • #1 ✎ 7 Yellow01 I was planning to add touchscreen functionality to my rudimentary paint program. To make a long story short, I programmed it so that the cursor X and Y position matches the touch position, as well as disappears. However, whenever I tap the screen, nothing happens, and the cursor no longer appears nor works. Does anyone know what is going on with my code? Oh yeah, here's the public key: 48AXQW3JJ Posted
  • #2 ✎ 255 niconii Power User Video Games I like to play video games! Hobbies Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Drawing I like to draw! Hobbies The cursor is still working, it's just off the bottom of the screen. Hold the Up button for a bit and it'll show up again. The problem here is that the touch coordinates are coordinates on the screen, not coordinates on the image, so you have to convert them before you can use them for your cursor position. Posted
  • #3 ✎ 7 Yellow01 Sigh, I should've known... thank you for catching that! By the way, since I don't want to make a thread for every little thing that happens, is it alright if I ask these here?: How do I rename the project (the big letters, not the smaller one underneath), and how do I transfer files between programs? And how do I change which graphic page to modify in a program? Posted
  • #4 ✎ 255 niconii Power User Video Games I like to play video games! Hobbies Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Drawing I like to draw! Hobbies To rename a project: From the main menu, choose File Manager -> Edit Project Information. You can edit the icon for the project, as well as change the title and description using the TITLE and MEMO buttons in the upper-right. To copy files between projects: From the main menu, choose File Manager -> Copy Files/Projects. Move your cursor to the project you want to copy files from, then press the - Button to view the files. Select all files you want to copy using the A Button, then press the + Button. Then select the project you want to copy the files to using the A or + Button. To change which graphics page to modify in a program: Use GTARGET n, where n is the number of the graphics page you want to modify. Posted