Giter Club home page Giter Club logo

arcade-keymapper's Introduction

Arcade Keymapper

A keymapper built in C++, using Windows low-level keyboard hooks to do several things:

  • Reset & boot initial kiosk client for the arcade UI
  • Fix enumeration issues by prompting user-based enumeration of joypads, for virtual keymapping
  • Auto refreshing arcade kiosk host processes after X amount of idle time
  • Provide retro-themed GUI prompts for users of the arcade kiosks

More detail

This is the keymapper that runs on the arcade kiosks, that takes joypad button inputs and maps them to virtual key presses. It does this by tricking the host OS (Windows) into thinking that a key was pressed when it was not. Why do we map to keys in the first place? Well, tracking joypads and their enumeration dynamically is a big hassle. It is instead easier to map the joypad inputs to keys, and that way, there is cross-platform support for inputs. WebGL doesn't play so great with joypad inputs either.

Virtual axes (e.g. left/right/up/down) are also mapped to keys, again, to make the process for input checking easier. Using this approach, we can also check when the last key was pressed without native windows.h calls from anywhere, which is useful when following development guidelines for the arcades.

arcade-keymapper's People

Contributors

blewert avatar

Watchers

 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.