Jump to content

[C#] 0.3.7 Metoda Key Bind


Recommended Posts

  • 1 year later...

am modificat eu putin sa execute doar cand apesi pe buton, daca vrei sa mai execute iar trebuie sa ridici butonu si sa-l apesi.

Bun codu, folositor . Bravo.


if (Input.IsDown(key) && _keyStatus == false) {
        _keyStatus = true;
else if (Input.IsUp(key)) {
       _keyStatus = false;


Probabil ai facut intentionat cu delayul , dar in cazul meu aveam nevoie sa bindez tasta 'K' pentru telefon si il tot deschidea inchidea daca tineam apasat.

  • Like 1
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...