0

I’m currently attempting to design a Pong clone as a way of testing my coding abilities. However, being on mobile, I can’t use a keyboard as an input to move the paddle, so I must use buttons, or some other method that involves the touch screen.

After doing some research, it seems most people just use a graphic library like SFML to handle things like buttons or sliders. Unfortunetaly, all of the graphic library that I have found aren’t compatible with mobile, and so I’m not sure where to go from here.

Basically, I’m looking for a graphic library that’ll work on mobile. If it helps, I’m on an iPhone 7 running iOS 13.6, and I’m using repl.it to write in C++.

P.S. Of course, if there is another way to use the touchscreen as an input that doesn’t involve graphic libraries, I would be happy to hear it.

1 Answers1

0

SDL2 has pretty nice support for mobile stuff, including iOS. There's a nice explanation/intro here

hSetlik
  • 44
  • 3