Giter Site home page Giter Site logo

key-action-binder-as3's Introduction

Hey there.

My name is Zeh Fernando. I live in Brooklyn, NY, and work for Facebook Reality Labs as a Software Engineer.

I was born and raised in São Paulo, Brazil. I grew up loving both to draw and to code, and have been working since 1994 in a vast number of projects, languages, and platforms. Programming wise, I tend to believe I’m mostly language-agnostic but today my attention is divided between JavaScript/TypeScript, C#, Kotlin, Dart, and Rust, all while targeting the web, mobile, and desktop platforms.

You can find more information on my portfolio.

key-action-binder-as3's People

Contributors

ericsoco avatar girasquid avatar mwgray avatar zeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

key-action-binder-as3's Issues

Errors

Hi, I have a small problem. I tried to test out the KeyActionBinder to see if my joystick is actually recognized. After I placed all the classes in the right spot (with the right path) I get these errors in the console:

keyActionBinding\com\zehfernando\input\binding\KeyActionBinder.as, Line 599 1119: Access of possibly undefined property id through a reference with static type flash.ui:GameInputControl.
keyActionBinding\com\zehfernando\input\binding\KeyActionBinder.as, Line 601 1119: Access of possibly undefined property minValue through a reference with static type flash.ui:GameInputControl.
keyActionBinding\com\zehfernando\input\binding\KeyActionBinder.as, Line 609 1119: Access of possibly undefined property minValue through a reference with static type flash.ui:GameInputControl.
keyActionBinding\com\zehfernando\input\binding\KeyActionBinder.as, Line 609 1119: Access of possibly undefined property maxValue through a reference with static type flash.ui:GameInputControlkeyActionBinding\com\zehfernando\input\binding\KeyActionBinder.as, Line 640 1119: Access of possibly undefined property DEVICE_UNUSABLE through a reference with static type Class.

Can you please help me, because I can not find what I'm doing wrong. Thanks !

Calling `stop()` allows bindings to remain activated

I ran into a bug in which I had to press a key twice for it to fire the bound action after stop()ing and re-start()ing a KeyActionBinder. I tracked it down to the fact that my stop() call happens before the key is released (the keypress exits a menu that uses the KeyActionBinder).

I could wait until the key is released to call stop(), but this isn't really ideal. Instead, I added code to stop() that deactivates all existing bindings. This might not be ideal for other circumstances, not really sure. @zeh what do you think? I can open a PR if this makes sense.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.