Is it possible to make it so when the mouse clicks something the game will act as if you press a specific button on your keyboard?
Like lets say you finish making a game and you would like to make some sort of dpad for a mobile version, and because it would be too time consuming to manually change the lines of code to match the clicking of the dpad buttons, I'd like to know if you can do something like "if you click this sprite the game will act as if you pressed up button"
thanks