2 * freeglut_input_devices_android.c
4 * Handles miscellaneous input devices via direct serial-port access.
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
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:
19 * The above copyright notice and this permission notice shall be included
20 * in all copies or substantial portions of the Software.
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.
31 #include <GL/freeglut.h>
32 #include "../Common/freeglut_internal.h"
33 typedef struct _serialport SERIALPORT;
36 * Try initializing the input device(s)
38 void fgPlatformRegisterDialDevice ( const char *dial_device )
40 fprintf(stderr, "fgPlatformRegisterDialDevice: STUB\n");
43 SERIALPORT *serial_open ( const char *device )
45 fprintf(stderr, "serial_open: STUB\n");
49 void serial_close(SERIALPORT *port)
51 fprintf(stderr, "serial_close: STUB\n");
54 int serial_getchar(SERIALPORT *port)
56 fprintf(stderr, "serial_getchar: STUB\n");
60 int serial_putchar(SERIALPORT *port, unsigned char ch)
62 fprintf(stderr, "serial_putchar: STUB\n");
66 void serial_flush ( SERIALPORT *port )
68 fprintf(stderr, "serial_flush: STUB\n");