Jump to content
RAGE Multiplayer Community

Crashing on Input.IsDown(69) C#


Recommended Posts

I have code that checking is button "E" pressed but client crashing

new Timer(OnKeyPress, null, 1000, 1000);
private void OnKeyPress(object state)
{
	if (Input.IsDown(69)) // 69 = E
    {
    	Chat.Output("E pressed");
    }
}

 

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...