Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
KeyList Class Reference

#include <inputhandler.h>

+ Inheritance diagram for KeyList:
+ Collaboration diagram for KeyList:

Public Member Functions

void clear ()
 
void set (const KeyPress &key)
 
void unset (const KeyPress &key)
 
void toggle (const KeyPress &key)
 
void append (const KeyList &other)
 
bool operator[] (const KeyPress &key) const
 

Private Types

typedef std::list< KeyPresssuper
 
typedef super::iterator iterator
 
typedef super::const_iterator const_iterator
 

Private Member Functions

virtual const_iterator find (const KeyPress &key) const
 
virtual iterator find (const KeyPress &key)
 

Member Typedef Documentation

◆ const_iterator

typedef super::const_iterator KeyList::const_iterator
private

◆ iterator

typedef super::iterator KeyList::iterator
private

◆ super

typedef std::list<KeyPress> KeyList::super
private

Member Function Documentation

◆ append()

void KeyList::append ( const KeyList & other)
inline

References set().

Referenced by MyEventReceiver::releaseAllKeys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clear()

void KeyList::clear ( )
inline

Referenced by MyEventReceiver::clearInput(), MyEventReceiver::clearWasKeyPressed(), MyEventReceiver::clearWasKeyReleased(), MyEventReceiver::dontListenForKeys(), and MyEventReceiver::releaseAllKeys().

+ Here is the caller graph for this function:

◆ find() [1/2]

virtual iterator KeyList::find ( const KeyPress & key)
inlineprivatevirtual

◆ find() [2/2]

virtual const_iterator KeyList::find ( const KeyPress & key) const
inlineprivatevirtual

Referenced by operator[](), set(), toggle(), and unset().

+ Here is the caller graph for this function:

◆ operator[]()

bool KeyList::operator[] ( const KeyPress & key) const
inline

References find().

+ Here is the call graph for this function:

◆ set()

void KeyList::set ( const KeyPress & key)
inline

References find().

Referenced by append(), MyEventReceiver::listenForKey(), and MyEventReceiver::OnEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toggle()

void KeyList::toggle ( const KeyPress & key)
inline

References find(), and p().

Referenced by RandomInputHandler::step().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unset()

void KeyList::unset ( const KeyPress & key)
inline

References find(), and p().

Referenced by MyEventReceiver::OnEvent(), and MyEventReceiver::WasKeyDown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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