Touch Controls to Inputs

I am brand new to programing and coding in general so forgive me if my topic or location of the topic is not correct. I am a fast learner and I hope I do it right. What I am trying to accomplish is using a touchscreen as an input device for a game project. For example

  1. I will have a digital representation of a power button on a TFT screen, Once I push the button the Arduino converts the touch into a joystick button press through windows. from there I will bind the command in the game.
    Then I will have several pages of screens all with other button commands.
    I have successfully programed a button box using analog buttons but would like to digitize the experience on a touch screen with different buttons on different pages. Is this possible or will I have to integrate more than just an Arduino. If anyone has any direction or suggestions, I would appreciate it.

I'm fairly new to all of this too, but you should be able to display an image of all the buttons on a touch screen, take the inputs from a touch, and code it to do something based on where it falls in the x,y grid. I imagine some others could help with specific libraries that already do some of these things, but I don't think it would be very difficult with just one screen of buttons.

That was my thinking as well. I just have no idea where to start.

It will be easier to pick out some hardware and then start researching it. Then you can see what the data you get back from the touchscreen looks like and start working with it. Even if you don't buy it until you are sure, you can look at datasheets and tutorials. You can't really get going without knowing what hardware you are making it for. It would be helpful once you do buy the parts to try to follow some tutorials on it to make sure everything works before you run into issues later and try to determine if it's your code or the hardware.

1 Like

When you say hardware are you referring to the screen?

Different Arduino boards will work a bit differently from each other too, but yeah, also the screen.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.