GithubHelp home page GithubHelp logo

dmahajan980 / gamepad-prototype Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 135 KB

A demo for navigating the web using adaptive game controllers

CSS 9.70% HTML 32.56% JavaScript 57.74%
gamepad gamepad-api game-controller navigation gamepad-navigation

gamepad-prototype's Introduction

GAMEPAD PROTOTYPE

This repository contains the Gamepad Navigation Prototype, a demo for experiencing the browser and webpage navigation using a standard game controller such as Xbox gamepad. The demo stands as a low-level prototype for the main project: Using a Game Controller as a Navigation Aid. I have listed a few details about the main project as well, below in the Technologies Used section.

TECHNOLOGIES USED

The prototype uses the following technologies and languages:

In this prototype, the HTML5 Gamepad API is used to establish connectivity between the browser and the gamepad. Further, it is used to read the input values passed by the various keypresses or joystick events. On top of this, JavaScript is used to implement the handlers for the key and joystick events which are needed for navigation and other background processes. Some JQuery was also used to make the event handlers more efficient.

Note: The original Gamepad project will be built using Infusion, a high performance and clean JavaScript framework that uses JQuery in its core. The solution will require using a Chrome Extension, ElectronJs or an API/Tool which will be decided during the initial stages of the project.

CONTROLS

Below is the list of buttons with their corresponding functionalities specified along:
(Please refer to the above diagram for the below mentioned buttons and axes)

Keys Functionality Analogous Keyboard Keys
Button 0 Select or Click on the focussed element Enter
Button 1 Back or Cancel Esc
Button 5 Move the focus to next focusable element Tab
Button 4 Move the focus to previous focusable element Shift + Tab
Button 9 Reload the webpage Ctrl + R
Button 12 or
Button 14 or
Right Joystick Up
Move to previous option in the dropdown or select field
Button 13 or
Button 15 or
Right Joystick Down
Move to next option in the dropdown or select field
Left Joystick up and down Scroll vertically across the webpage and
Left Joystick left and right Scroll horizontally across the webpage and
Button 6 Move to previous page in history Alt +
Button 7 Move to next page in history Alt +

gamepad-prototype's People

Contributors

dmahajan980 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.