kb/data/developer.mozilla.org/en-US/docs/Games/Techniques/Control_mechanisms-0.md

10 KiB

title chunk source category tags date_saved instance
Implementing game control mechanisms - Game development | MDN 1/2 https://developer.mozilla.org/en-US/docs/Games/Techniques/Control_mechanisms reference web, html, css, javascript, documentation 2026-05-05T05:21:42.928928+00:00 kb-cron

MDN HTML HTML: Markup language

HTML reference

HTML guides

Markup languages

CSS CSS: Styling language

CSS reference

CSS guides

Layout cookbook

JavaScriptJS JavaScript: Scripting language

JS reference

JS guides

Web APIs Web APIs: Programming interfaces

Web API reference

Web API guides

All All web technology

Technologies

Topics

Learn Learn web development

Frontend developer course

Learn HTML

Learn CSS

Learn JavaScript

Tools Discover our tools

About Get to know MDN better

Blog

  1. Game development
  2. Techniques for game development
  3. Implementing game control mechanisms

Implementing game control mechanisms

One of HTML5's main advantages as a game development platform is the ability to run on various platforms and devices. Streamlining cross device differences creates multiple challenges, not least when providing appropriate controls for different contexts. In this series of articles we will show you how you can approach building a game that can be played using touchscreen smartphones, mouse and keyboard, and also less common mechanisms such as gamepads.

In this article