LoginLogin
Might make SBS readonly: thread

Trouble with touchscreen

Root / Programming Questions / [.]

Yellow01Created:
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

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.

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?

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.