Skip to content

Input Sequence

Simon (darkside) Jackson edited this page Aug 21, 2020 · 7 revisions

Input Sequence

Area Submitted Type
Input, Touch & Gestures 2/19/2009 Code Sample

Description

This sample shows how to detect sequences of input such as combo series, cheat codes, and other multi-button functions.

Sample Overview

As the number of moves in a game increases, the number of buttons on the controller remains constant. Sequences and combinations of buttons can be used to represent a wider set of inputs than simply detecting which buttons are currently pressed. This sample contains the minimum logic required to detect simple input sequences. Fighting and action games can use this code as a starting point for a more advanced input subsystem. The code also draws input to the screen in a way that is useful for debugging and tweaking a game's controls.

All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).

Download Size Description
InputSequenceSample_4_0 0.05MB Source code and assets for the Input Sequence Sample (XNA Game Studio 4.0).
InputSequenceSample_4_0.zip 0.05MB Source code and assets for the Input Sequence Sample (XNA Game Studio 4.0).
Clone this wiki locally