ControlGS
- 5 Devlogs
- 5 Total hours
It lets you map your controller keys to keyboard keys so you can use your controller to play browser games.
It lets you map your controller keys to keyboard keys so you can use your controller to play browser games.
Added Mouse clicks, most of the script is complete, now i’m going to design a GUI using PySide6(i don’t know how it works so i will watch some tutorials for it and maybe take some help from chatGPT) so users can easily map their keys instead of going through my messy code.
Added right joystick controls, this joystick is used to move the player camera. It uses pygame’s mouse move to move the camera, the right joystick might not need to be mapped to something else. I tested it on the browser-based version of GTA Vice City, and it’s actually working!
Today I worked on the joystick to W, A, S, D mapping, the positive and negative axis got mixed up at first because joystick up and down axis was -ve up, +ve down and -ve left, +ve right, why didn’t they mapped it like a coordinate plane but it’s done now.
After working on input from the controller, I worked on the key simulation mapped to a button to check if the mapping actually simulates the key press or not, tested by mapping A on my controller to the space button and adding spaces between “this is” in Notepad. Tomorrow I’ll try mapping the joystick to W, A, S, D.
Hello everyone! I’m working on a desktop application that lets users map their controller buttons to keyboard keys, so that users can play browser-based games directly with their Xbox 360 or other gaming controller. Today i worked on key detection for all 14 buttons.