Allow mouse clicks in player Control Settings
Hey!
Im currently using the "XControl" object to sort the player controls. I have global values that represents a button, e.g. Global Value A holds the value "32". Then, I have an event if user presses the keycode value of Global Value A (32, which is Space) the player shall jump. This way I can very easily allow the player to change the controls in my own way. But I want the player to be able to use the Right Click on the mouse for this.
Anyone have any ideas how to solve this without using "IF, ELSE" events? I could simulate a mouseclick but I have had some issues with this as sometimes the button is still simulated after I close the application. Does the mouse clicks have a key code?? Or maybe use a different object than XControl??