XNA Creators Club Online

sample details

Input Sequence Sample
Sample
area
submitted
2/19/2009

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 increase, 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 which is useful for debugging and tweaking a games controls.
downloads
Framework

GS 3.0

var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG