Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Keybindings?


Gohan
 Share

Recommended Posts

Are Keybindings possible? It'd be nice for players to set controls based on their own individual keyboard. Not all keyboards are the same.

If it's not possible then how do I change the controls with source edit? I can always just change the controls to something easier for the general gamer.
Link to comment
Share on other sites

Well, first of all, look into a chat system that requires you to push enter to chat. That's a good place to start.

As for key bindings, all keys are numeric. For instance, the "A" key is 65\. All you'd have to do is store the key code for the pressed key in a variable, like "AttackKey = 65". Then, in the source, where it says things like "If KeyPressed = VBKeyCTRL", you could do something like "If KeyPressed = AttackKey". You'd have to make edits to most/all of the key-based functions of Eclipse to accomplish this, but it's not too hard; it's just a lot of tedious work.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...