FS#11968 by Peter Lecky - Slovak language update
[maemo-rb.git] / firmware / target / hosted / sdl / buttonmap.h
blobe90b8a40d4f5b2caf37db9d938cea780296bde62
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2010 by Fred Bauer
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef __BUTTONMAP_H__
23 #define __BUTTONMAP_H__
24 /* Button maps: simulated key, x, y, radius, name */
25 /* Run sim with --mapping to get coordinates */
26 /* or --debugbuttons to check */
27 /* The First matching button is returned */
28 struct button_map {
29 int button, x, y, radius;
30 char *description;
33 extern struct button_map bm[];
35 int xy2button( int x, int y);
37 /* for the sim, these function is implemented in uisimulator/buttonmap/ *.c */
38 int key_to_button(int keyboard_button);
39 #ifdef HAVE_TOUCHSCREEN
40 int key_to_touch(int keyboard_button, unsigned int mouse_coords);
41 #endif
43 #endif /* __BUTTONMAP_H__ */