COMMON: Hopefully fix compilation

EVENT_CUSTOM_BACKEND_HARDWARE is only set when ENABLE_KEYMAPPER is set
This commit is contained in:
Filippos Karapetis 2012-03-17 15:25:51 +02:00
parent 97ed6a5abb
commit 2b57ccfd5e

View File

@ -50,7 +50,7 @@ List<Event> DefaultEventMapper::mapEvent(const Event &ev, EventSource *source) {
if (mappedEvent.type == EVENT_INVALID)
mappedEvent = ev;
#ifdef ENABLE_VKEYBD
#ifdef ENABLE_KEYMAPPER
// TODO: this check is not needed post-split
if (mappedEvent.type == EVENT_CUSTOM_BACKEND_HARDWARE) {
warning("EVENT_CUSTOM_BACKEND_HARDWARE was not mapped");