laMultiKey Class Reference

Handling Multiple Key Presses. More...

#include <laMultiKey.h>

Public Member Functions

void set (KEY key, double sec, unsigned n=2, M_BOOL first_down=M_TRUE)
double getInterval ()
unsigned getNPress ()
void reset ()
M_BOOL isActivated ()
M_BOOL animate (laInputManager *pi, laTimer &t)

Detailed Description

Handling Multiple Key Presses.

This class provides the functionality for detecting multiple key presses within a specified time interval.

The number of key presses (n) and interval in seconds (sec) can be specified

This functionality can be used as an easy way to add more responsiveness to player controls (e.g. single jump, double jump).

Copyright (C) 2007-2013 Atanas Laskov, latan.nosp@m.as@g.nosp@m.mail..nosp@m.com

Definition at line 49 of file laMultiKey.h.

The documentation for this class was generated from the following files: