class KeyboardBuffer : public Keyboard

More powerful than Keyboard : it can send again a old key pressed if another has been pressed, so the game can manage easily the key action

Inheritance:


Public Methods

KeyboardBuffer(bool _withoutRepeat=true) throw(Exception)
virtual ~KeyboardBuffer() throw()
virtual Key* get() throw()

Private Fields

const bool withoutRepeat
Fifo <Key*> buf
List downList
List <Key*> toBeDeleted

Private Methods

virtual void work(int key, bool press) throw()

Inherited from Keyboard:

Public Methods

bool refresh() throw()

Documentation

More powerful than Keyboard : it can send again a old key pressed if another has been pressed, so the game can manage easily the key action. If you press the #13 key without releasing it (the KeyboardBuffer sends #13 down), and you press the #1 key (the KeyboardBuffer sends #1 down), when you release the #1 key (the KeyboardBuffer sends #1 up), the KeyboardBuffer sends again #13 down. So the moving of the Bonhomme are cool !!
const bool withoutRepeat

Fifo <Key*> buf

List downList

List <Key*> toBeDeleted

virtual void work(int key, bool press) throw()

KeyboardBuffer(bool _withoutRepeat=true) throw(Exception)

virtual ~KeyboardBuffer() throw()

virtual Key* get() throw()


This class has no child classes.
Author:
David FAUTHOUX

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de