comparison mupdf-source/thirdparty/freeglut/src/android/fg_input_devices_android.c @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
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 *serial_open ( const char *device ) { return NULL; }
49 void serial_close(SERIALPORT *port) {}
50 int serial_getchar(SERIALPORT *port) { return EOF; }
51 int serial_putchar(SERIALPORT *port, unsigned char ch) { return 0; }
52 void serial_flush ( SERIALPORT *port ) {}