Search the Community
Showing results for tags 'options'.
Hello. I'm working on a demo for my upcoming game, and while I was working on it, I wanted to add the ability to bind keys in the options menu. I've already made the GUI code (in Lua) to make a second tab, add buttons for every movement, etc... The problem is I can't figure how to listen for keyboard/mouse input. As you can see, I've chosen buttons and not TextInput. When you click a button, a panel opens with a text. This panel will only close when the user will press a button or hit escape. And this is where I'm stuck. How can I listen for any keyboard or mouse input?
Alright so let me explain myself a bit here, you know how in games you have those options that define how much gamma there is and whatnot? I was wondering how to do that and how to keep it persistent through all the levels the user has created. An example of this would be to manipulate say the Bloom shader, by having an option to toggle it on or off an keep it saved. I'm not asking anyone to code anything for me, but instead to guide me in the right direction.