Gamedev Framework (gf)  0.8.0
A C++14 framework for 2D games
Public Member Functions | List of all members
gf::KonamiKeyboardControl Class Reference

The Konami code control for keyboard. More...

#include <gf/Controls.h>

Inheritance diagram for gf::KonamiKeyboardControl:
Inheritance graph
[legend]

Public Member Functions

 KonamiKeyboardControl ()
 Construct a Konami control. More...
 
virtual void processEvent (const Event &event) override
 Update the state of the control thanks to an event. More...
 
- Public Member Functions inherited from gf::Control
 Control ()
 Construct a control. More...
 
virtual ~Control ()
 Destroy the control. More...
 
bool isActive ()
 Check if the control is active. More...
 
void setActive (bool active=true)
 Change the active state of the control. More...
 
void reset ()
 Desactivate the control. More...
 

Detailed Description

The Konami code control for keyboard.

See also
gf::KonamiGamepadControl
Konami Code - Wikipedia

Constructor & Destructor Documentation

◆ KonamiKeyboardControl()

gf::KonamiKeyboardControl::KonamiKeyboardControl ( )

Construct a Konami control.

Member Function Documentation

◆ processEvent()

virtual void gf::KonamiKeyboardControl::processEvent ( const Event event)
overridevirtual

Update the state of the control thanks to an event.

Parameters
eventThe event to update the control.
See also
Action::processEvent()

Implements gf::Control.