nuclear@6: /* nuclear@6: GoatKit - a themable/animated widget toolkit for games nuclear@6: Copyright (C) 2014 John Tsiombikas nuclear@6: nuclear@6: This program is free software: you can redistribute it and/or modify nuclear@6: it under the terms of the GNU Lesser General Public License as published by nuclear@6: the Free Software Foundation, either version 3 of the License, or nuclear@6: (at your option) any later version. nuclear@6: nuclear@6: This program is distributed in the hope that it will be useful, nuclear@6: but WITHOUT ANY WARRANTY; without even the implied warranty of nuclear@6: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the nuclear@6: GNU Lesser General Public License for more details. nuclear@6: nuclear@6: You should have received a copy of the GNU Lesser General Public License nuclear@6: along with this program. If not, see . nuclear@6: */ nuclear@6: #include "event.h" nuclear@6: nuclear@6: nuclear@6: const char *goatkit::event_type_name(EventType type) nuclear@6: { nuclear@6: // XXX keep this array synchronized with enum EventType nuclear@6: static const char *names[NUM_EVENTS] = { nuclear@6: "mouse button", nuclear@6: "mouse motion", nuclear@6: "focus", nuclear@6: "keyboard", nuclear@6: "click", nuclear@6: "double click", nuclear@6: "change" nuclear@6: }; nuclear@6: nuclear@6: return names[type]; nuclear@6: }