Fixed namespace pollution due to a number of global symbols missing an fg prefix
[freeglut] / src / android / fg_input_devices_android.c
1 /*
2  * fg_input_devices_android.c
3  *
4  * Handles miscellaneous input devices via direct serial-port access.
5  *
6  * Written by Joe Krahn <krahn@niehs.nih.gov> 2005
7  * Copyright (c) 2005 Stephen J. Baker. All Rights Reserved.
8  * Copied for Platform code by Evan Felix <karcaw at gmail.com>
9  * Copyright 2012 (C)  Sylvain Beucler
10  * Creation date: Thur Feb 2 2012
11  *
12  * Permission is hereby granted, free of charge, to any person obtaining a
13  * copy of this software and associated documentation files (the "Software"),
14  * to deal in the Software without restriction, including without limitation
15  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16  * and/or sell copies of the Software, and to permit persons to whom the
17  * Software is furnished to do so, subject to the following conditions:
18  *
19  * The above copyright notice and this permission notice shall be included
20  * in all copies or substantial portions of the Software.
21  *
22  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
25  * PAWEL W. OLSZTA OR STEPHEN J. BAKER BE LIABLE FOR ANY CLAIM, DAMAGES OR
26  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28  * DEALINGS IN THE SOFTWARE.
29  */
30
31 #include <GL/freeglut.h>
32 #include "fg_internal.h"
33 typedef struct _serialport SERIALPORT;
34 #include <stdio.h>
35
36 /*
37  * This is only used if the user calls:
38  * glutDeviceGet(GLUT_HAS_DIAL_AND_BUTTON_BOX)
39  * and has old hardware called 'dials&buttons box'.
40  * http://www.reputable.com/sgipix/sgi-dialnbutton1.jpg
41  * 
42  * Not implemented on Android :)
43  * http://sourceforge.net/mailarchive/message.php?msg_id=29209505
44  */
45 void fgPlatformRegisterDialDevice ( const char *dial_device ) {
46     fgWarning("GLUT_HAS_DIAL_AND_BUTTON_BOX: not implemented");
47 }
48 SERIALPORT *fg_serial_open ( const char *device ) { return NULL; }
49 void fg_serial_close(SERIALPORT *port) {}
50 int fg_serial_getchar(SERIALPORT *port) { return EOF; }
51 int fg_serial_putchar(SERIALPORT *port, unsigned char ch) { return 0; }
52 void fg_serial_flush ( SERIALPORT *port ) {}