b738487fba4493ab9008d65ff8428d53cff41a9e
3 #include "SimpleKeyListener.h"
8 /*----------------------------------------------------------------------*\
10 \*---------------------------------------------------------------------*/
12 /*--------------------------------------*\
14 \*-------------------------------------*/
16 /*-----------------------*\
18 \*----------------------*/
20 SimpleKeyListener::SimpleKeyListener()
25 SimpleKeyListener::~SimpleKeyListener()
30 /*-----------------------*\
32 \*----------------------*/
34 void SimpleKeyListener::onKeyPressed(const KeyEvent
&event
)
36 if (event
.isSpecial())
38 cout
<< "Special Key Pressed " << event
.getSpecialKey() << endl
;
42 cout
<< "KeyPressed = " << event
.getKey() << endl
;
47 /*--------------------------------------*\
49 \*-------------------------------------*/
51 /*----------------------------------------------------------------------*\
53 \*---------------------------------------------------------------------*/