Giter Site home page Giter Site logo

microsoft / arcade-machine Goto Github PK

View Code? Open in Web Editor NEW
19.0 36.0 4.0 2.3 MB

:video_game: Input abstraction layer for gamepads, keyboards, and UWP apps in Angular. For React, check out https://github.com/mixer/arcade-machine-react

License: Other

TypeScript 87.26% JavaScript 12.74%
angular2 angular uwp gamepad gamepad-api xbox-controller xbox

arcade-machine's People

Contributors

aechdub avatar anshah1983 avatar antariano avatar chtil-msft avatar connor4312 avatar jamesbirtles avatar saadataz avatar simonschick avatar xiaoxli avatar

Stargazers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arcade-machine's Issues

InputService Injection fails due to WinRT error on the constructor

This is the error we were getting:

  • “ERROR WinRTError: The application called an interface that was marshalled for a different thread.”

This is the "TEMPORARY" fix we had to put in (assigning null):

/**

  • InputService handles passing input from the external device (gamepad API
  • or keyboard) to the arc internals.
    /
    var InputService = (function () {
    function InputService(focus) {
    this.focus = focus;
    /
    *
    * Inputpane and boolean to indicate whether it's visible
    */
    this.inputPane = null;// window.Windows ? Windows.UI.ViewManagement.InputPane.getForCurrentView() : null;

DOM Elements are selected when clicked

I believe this issue is multifaceted:

When clicking (via mouse) on items (DIV, UL, SPAN, etc.), these items can be selected (gets the 'arc--selected-direct' class). I would not expect this to even be possible due to the documentation:

You must define arc directive on element which you want to be focusable that are not otherwise focusable, or when you want to define custom logic. That is, anything except the following tags:

To prevent this, I have attempted:

  • no 'arc' class added
  • added tabIndex="-1"
    - [arc-exclude-this]="true", [arc-exclude]="true" - These two options cause the Angular compile to fail with the following error:
    • "Can't bind to 'arc-exclude-this' since it isn't a known property of 'ul'." (I have the fill trace I can provide).

Just getting comfortable with how this system works and how to properly setup the DOM.

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.