1 /*! 2 * \file keymap.c 3 * \brief convert keyboard value to ascii value 4 * 5 * \date Dec 2007 6 * \author Adam Lackorznynski <adam@os.inf.tu-dresden.de> 7 * 8 */ 9 /* 10 * (c) 2007-2009 Author(s) 11 * economic rights: Technische Universität Dresden (Germany) 12 * This file is part of TUD:OS and distributed under the terms of the 13 * GNU Lesser General Public License 2.1. 14 * Please see the COPYING-LGPL-2.1 file for details. 15 */ 16 17 #include <l4/util/keymap.h> 18 19 #ifdef USE_DE_KEYMAP 20 #include "keymap_de.h" 21 #else 22 #include "keymap_en.h" 23 #endif 24 l4util_map_event_to_keymap(unsigned value,unsigned shift)25int l4util_map_event_to_keymap(unsigned value, unsigned shift) 26 { 27 if (value < 128 && shift < 2) 28 return keymap[value][shift]; 29 30 return 0; 31 } 32