Jump to content

1 Screenshot

About This File

This function helps you to add keys binding if you use C # client side ...

Example of use :

Tick Event

            KeyManager.KeyBind(0xA2, () =>
            {
                Chat.Output("Key Bind Work");      
            });   
            
            KeyManager.KeyBind(KeyManager.KeyMouse, () =>
            {
                Cursor.Visible = !Cursor.Visible;               
            }); 

 

 

  • Like 1

User Feedback

Recommended Comments

thalwarus

Posted (edited)

I have tried it but i have the problem, that the tick event fires every tick and not when the key is really pressed? any idea why this may happen?

I tried to write this in Tick-Event:
Chat.Output(Input.IsUp((int)ConsoleKey.F).ToString());
Chat.Output(Input.IsDown((int)ConsoleKey.F).ToString());

And it fires all the time :-/
 

True

True

True

...

 

Edited by thalwarus
gatno

Posted

@thalwarus
Use !Input.IsDown() instead of Input.IsUp()

It's a known bug.

Depliix

Posted

When i use this, i can not use SaltyChat, because the tick class prevent it.

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
×
×
  • Create New...