autotools: Android port
[freeglut] / src / android / freeglut_input_devices_android.c
1 /*
2  * freeglut_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 "../Common/freeglut_internal.h"
33 typedef struct _serialport SERIALPORT;
34
35 /*
36  * Try initializing the input device(s)
37  */
38 void fgPlatformRegisterDialDevice ( const char *dial_device )
39 {
40   fprintf(stderr, "fgPlatformRegisterDialDevice: STUB\n");
41 }
42
43 SERIALPORT *serial_open ( const char *device )
44 {
45   fprintf(stderr, "serial_open: STUB\n");
46   return NULL;
47 }
48
49 void serial_close(SERIALPORT *port)
50 {
51   fprintf(stderr, "serial_close: STUB\n");
52 }
53
54 int serial_getchar(SERIALPORT *port)
55 {
56   fprintf(stderr, "serial_getchar: STUB\n");
57   return EOF;
58 }
59
60 int serial_putchar(SERIALPORT *port, unsigned char ch)
61 {
62   fprintf(stderr, "serial_putchar: STUB\n");
63   return 0;
64 }
65
66 void serial_flush ( SERIALPORT *port )
67 {
68   fprintf(stderr, "serial_flush: STUB\n");
69 }