diff options
| author | Steve Price <steve@FreeBSD.org> | 1999-06-06 16:51:45 +0000 |
|---|---|---|
| committer | Steve Price <steve@FreeBSD.org> | 1999-06-06 16:51:45 +0000 |
| commit | 50b0a02137e5df3302bf21093989a132c5311f13 (patch) | |
| tree | 3d9ab3c14015ae84cebdfb82e817926f1b7f5406 /emulators/vice/files/patch-ab | |
| parent | 2e3ee07db29a37b616c3735b2b6ef92f4cc5aff3 (diff) | |
Update to version 1.0.
PR: 11938
Submitted by: maintainer
Diffstat (limited to 'emulators/vice/files/patch-ab')
| -rw-r--r-- | emulators/vice/files/patch-ab | 83 |
1 files changed, 12 insertions, 71 deletions
diff --git a/emulators/vice/files/patch-ab b/emulators/vice/files/patch-ab index d464178bdfa2..eb5758f67d6a 100644 --- a/emulators/vice/files/patch-ab +++ b/emulators/vice/files/patch-ab @@ -1,71 +1,12 @@ ---- ./arch/unix/joystick.c.orig Sat Mar 7 09:01:51 1998 -+++ ./arch/unix/joystick.c Sat Mar 28 09:19:42 1998 -@@ -1,5 +1,5 @@ - /* -- * joystick.c - Joystick support for Linux. -+ * joystick.c - Joystick support for Linux and *BSD - * - * Written by - * Bernhard Kuhn (kuhn@eikon.e-technik.tu-muenchen.de) -@@ -7,6 +7,7 @@ - * - * Patches by - * Daniel Sladic (sladic@eecg.toronto.edu) -+ * Dave Chapeskie <dchapes@ddm.on.ca> - * - * This file is part of VICE, the Versatile Commodore Emulator. - * See README for copyright notice. -@@ -32,7 +33,13 @@ - - #ifdef HAS_JOYSTICK - -+#ifdef __linux__ - #include <linux/joystick.h> -+#else -+#include <machine/joystick.h> -+#define JS_DATA_TYPE joystick -+#define JS_RETURN (sizeof(struct joystick)) -+#endif - #include <unistd.h> - #include <stdio.h> - #include <sys/types.h> -@@ -89,7 +96,11 @@ - for(i=0;i<2;i++) { - - char* dev; -+#ifdef __linux__ - dev=(i==0)?"/dev/js0":"/dev/js1"; -+#else -+ dev=(i==0)?"/dev/joy0":"/dev/joy1"; -+#endif - - ajoyfd[i]=open(dev,O_RDONLY); - if (ajoyfd[i] < 0) { -@@ -132,6 +143,7 @@ - } - } - -+#ifdef __linux__ - /* open device files for digital joystick */ - for(i=0;i<2;i++) { - char* dev; -@@ -142,6 +154,7 @@ - fprintf(stderr, "Warning: couldn't open the joystick device %s!\n",dev); - } - } -+#endif - } - - void joyclose(void) -@@ -195,7 +208,11 @@ - else joy[i] &= ~4; - if (js.x>joyxmax[ajoyport]) joy[i] |= 8; - else joy[i] &= ~8; -+#ifdef __linux__ - if(js.buttons) joy[i] |= 16; -+#else -+ if(js.b1 | js.b2) joy[i] |= 16; -+#endif - else joy[i] &= ~16; - } - } +--- ./man/c1541.1.orig Sat May 29 11:34:58 1999 ++++ ./man/c1541.1 Sat May 29 11:35:16 1999 +@@ -77,7 +77,8 @@ + .B \- + as a file name, it stands for \fIstdin\fR or \fIstdout\fR. + .SH SEE ALSO +-.BR VICE (1), ++.BR vice (1), ++.BR c1541 (1), + .BR petcat (1) + .SH AUTHORS + Teemu Rantanen <tvr@cs.hut.fi> |
