I have Raspberry Pi 3 Model B+ with 5 inches Display with touchscreen for my challenge [Display works successful!]. I am using Debian Raspberry OS. I am on the file in /home/pi/mcpi/api/python/mcpi/touchControl.py to add only up, down, left and right movement as well as the camera too to support the TFT display touchscreen. This is part of my project in my college education. I am only familiar with basic Python to build calculator, structures, and file io, but definitely not to edit with existing file like Minecraft Pi or Firefox. I hope this one I can learn more interesting case to build for a game movement controller on touchscreen.
I am currently working on Minecraft Pi which it is already installed on the system, and I brought the touchscreen display from amazon to installed on Raspberry Pi, but the hardest part when I play on Minecraft is without keyboard.
Is there a possibility that I can open the Python or create new file to add Touchscreen mode for Minecraft Pi?
For example, LEFT, RIGHT, UP and DOWN movement should be add to the screen on Minecraft Pi where I can use my finger to move/walking/running the minecraft character. SO I AM STUCK ON HOW TO CREATE “LEFT, RIGHT, UP, OR DOWN” BUTTONS THAT ALLOWS TO USE FOR KEYBOARD WHICH IT IS WASD (W = UP, A = LEFT, S = DOWN, AND D = RIGHT). Currently, Minecraft Pi hasn't added yet because I am not familiar with Raspberry Pi Games Python. I hope this make sense.
Here is also both helpful images I am expected for after: