Git Product home page Git Product logo

gamepad.js's Introduction

gamepad.js

A simple demo of the HTML5 Gamepad API, showing debug info and button states for all connected controllers, in realtime.

Built with React, TypeScript, and Stylus

See it in action here: http://html5gamepad.com

gamepad.js's People

Contributors

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

gamepad.js's Issues

How do I get this running locally?

I want to run this on my local machine so that I can test gamepads offline. I tried running bundle exec rackup -p 1234 ( I have seen this in another Ruby project). bundle install works. It is a win10 machine, I want to run it in the linux subsystem

Command line export

Hi, thank you for the great work.
I have one question. Is it possible to create a command line version of that? I want to use the info of the gamepad in my application and I am not familiar with cofee.

It could be highly appreciated if you can do that for me, and you can ask me some money if you want.

[Website] Add search, sort, filtering for controllers/codes

Since the pagination is for presentation only, and the entire dataset is downloaded to the client on page load, it would be nice to be able to search, sort, and filter the data.

Basic lowercase text str.includes() filtering would be a great start, but fuzzy search would be even better.

Adding support for sorting by field would be great, too (reversing, sort by count/variant/etc.).

I'm sure you could get community help with this, but I'm not sure how the website relates to this repo, since the site links to this repo, but there's not mention of a repo dedicated to the website source. Is there a repo for that purpose, or plans for one?

>4 Gamepads

This only shows 4 gamepads but theoretically could have more, right?

Gamepad Names

This is not an issue, but a request. I am finding it incredibly difficult to find a comprehensive list of gamepad names that I could use a a guide for detecting what type of gamepad a person is using. Although I realize this is not an exact science, it seems it would be incredibly easy to create a database using the information gathered from this site. Any way that could be done?

Ignoring controller calibration

Inside windows, you can configure controller calibration for controllers with unaligned axises, this website ignores this calibration, and reports a range of -0.9 to 0.2 with the middle of the range a -0.411765, what gives a wrong impression for controller support on the web

Show joystick way

Under Ubuntu with the inbuilt joystick-testing program, it shows the way. More than often a seperate tool would be needed to show it - the x52 just produces a lot of corners, not a lot of small ones to simulate a curve.
I'm trying to visualize it before and after modding it and found your homepage while researching.

Thought it might be interesting.

Greetings

Controller polling rate / frequency

There is no tool to check the rate at which the controllers send their inputs, like this one is for mouse:

https://zowie.benq.com/ja/support/mouse-rate-checker.html

For example there are tools to change DS4 wired usb polling rate from 250hz to 1000hz, but absolutely no tools to confirm if the controller actually is producing data at 1ms interval instead of 4ms.

I'm talking about the https://html5gamepad.com/ demo or test page. It's a great tool, that would be very usefull to check the polling rates also!

Create dist folder with compile coffeeScript

Any chance we can get a compiled version of the code? I would have liked to drag bits of this directly into my codebase but since I don't use CoffeeScript, I can't do that without some effort. So I'm going to go look for examples elsewhere, but for future people in the same situation, a compiled vanilla javascript version would be really handy.

Axis don't show up with WUP-028

Currently using a WUP-028 official Nintendo Gamecube adapter using the GCN USB Adapter software (WinUSB (v6.1.7600.16385) drivers) and the sticks (as well as the R and L button analogue inputs) do not show up on the viewer

Don't leak private info

In macOS it is possible to name controller. This name is then used as id for reporting of top controllers (postGamepad). Please consider using other means of identifying controllers that is less privacy intrusive.

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.