Minetest  5.4.0
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)
 
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

◆ clear()

void KeyList::clear ( )
inline

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

+ 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 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: