istereo2

annotate libs/goatkit/event.cc @ 28:74b50b538858

added nexus7 device id for ad testing
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 05 Oct 2015 17:16:31 +0300
parents
children
rev   line source
nuclear@6 1 /*
nuclear@6 2 GoatKit - a themable/animated widget toolkit for games
nuclear@6 3 Copyright (C) 2014 John Tsiombikas <nuclear@member.fsf.org>
nuclear@6 4
nuclear@6 5 This program is free software: you can redistribute it and/or modify
nuclear@6 6 it under the terms of the GNU Lesser General Public License as published by
nuclear@6 7 the Free Software Foundation, either version 3 of the License, or
nuclear@6 8 (at your option) any later version.
nuclear@6 9
nuclear@6 10 This program is distributed in the hope that it will be useful,
nuclear@6 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
nuclear@6 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
nuclear@6 13 GNU Lesser General Public License for more details.
nuclear@6 14
nuclear@6 15 You should have received a copy of the GNU Lesser General Public License
nuclear@6 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
nuclear@6 17 */
nuclear@6 18 #include "event.h"
nuclear@6 19
nuclear@6 20
nuclear@6 21 const char *goatkit::event_type_name(EventType type)
nuclear@6 22 {
nuclear@6 23 // XXX keep this array synchronized with enum EventType
nuclear@6 24 static const char *names[NUM_EVENTS] = {
nuclear@6 25 "mouse button",
nuclear@6 26 "mouse motion",
nuclear@6 27 "focus",
nuclear@6 28 "keyboard",
nuclear@6 29 "click",
nuclear@6 30 "double click",
nuclear@6 31 "change"
nuclear@6 32 };
nuclear@6 33
nuclear@6 34 return names[type];
nuclear@6 35 }