From: Sylvain Beucler Date: Thu, 3 May 2012 07:54:12 +0000 (+0000) Subject: GLUT_HAS_DIAL_AND_BUTTON_BOX officially not implemented on Android X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=caded816ec09a8622f4a3c18d73397b3808747a7;p=freeglut GLUT_HAS_DIAL_AND_BUTTON_BOX officially not implemented on Android git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1286 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/android/fg_input_devices_android.c b/src/android/fg_input_devices_android.c index 89f412b..b4ef2a6 100644 --- a/src/android/fg_input_devices_android.c +++ b/src/android/fg_input_devices_android.c @@ -32,37 +32,19 @@ typedef struct _serialport SERIALPORT; /* - * Try initializing the input device(s) + * This is only used if the user calls: + * glutDeviceGet(GLUT_HAS_DIAL_AND_BUTTON_BOX) + * and has old hardware called 'dials&buttons box'. + * http://www.reputable.com/sgipix/sgi-dialnbutton1.jpg + * + * Not implemented on Android :) + * http://sourceforge.net/mailarchive/message.php?msg_id=29209505 */ -void fgPlatformRegisterDialDevice ( const char *dial_device ) -{ - fprintf(stderr, "fgPlatformRegisterDialDevice: STUB\n"); -} - -SERIALPORT *serial_open ( const char *device ) -{ - fprintf(stderr, "serial_open: STUB\n"); - return NULL; -} - -void serial_close(SERIALPORT *port) -{ - fprintf(stderr, "serial_close: STUB\n"); -} - -int serial_getchar(SERIALPORT *port) -{ - fprintf(stderr, "serial_getchar: STUB\n"); - return EOF; -} - -int serial_putchar(SERIALPORT *port, unsigned char ch) -{ - fprintf(stderr, "serial_putchar: STUB\n"); - return 0; -} - -void serial_flush ( SERIALPORT *port ) -{ - fprintf(stderr, "serial_flush: STUB\n"); +void fgPlatformRegisterDialDevice ( const char *dial_device ) { + fgWarning("GLUT_HAS_DIAL_AND_BUTTON_BOX: not implemented"); } +SERIALPORT *serial_open ( const char *device ) {} +void serial_close(SERIALPORT *port) {} +int serial_getchar(SERIALPORT *port) { return EOF; } +int serial_putchar(SERIALPORT *port, unsigned char ch) { return 0; } +void serial_flush ( SERIALPORT *port ) {}