1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef ION_FLTK_KBD #define ION_FLTK_KBD #include <FL/Fl_Group.H> #include <FL/Fl_Button.H> #include <ion/keyboard.h> class FltkKbd : public Fl_Group { public: FltkKbd(int x, int y, int w, int h); bool key_down(Ion::Keyboard::Key key); private: Fl_Button * m_buttons[Ion::Keyboard::NumberOfKeys]; }; #endif