summaryrefslogtreecommitdiff
path: root/sys/arch/atari/dev/ms.c
diff options
context:
space:
mode:
authorleo <leo@NetBSD.org>1996-04-23 11:02:01 +0000
committerleo <leo@NetBSD.org>1996-04-23 11:02:01 +0000
commitdf8c6afda1bb66fd0eff62cd3e879e4d859faa63 (patch)
treef4b5a81f4695c2d56258ad73d9179c2faf2d3f5a /sys/arch/atari/dev/ms.c
parente376b17fefe87eab56f4d5bff7b0d56c7f4ecf52 (diff)
Ignore joystick packages when running in 3b. emulation mode.
Diffstat (limited to 'sys/arch/atari/dev/ms.c')
-rw-r--r--sys/arch/atari/dev/ms.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/atari/dev/ms.c b/sys/arch/atari/dev/ms.c
index 2fcbbc15f0c..f3fa5f49a75 100644
--- a/sys/arch/atari/dev/ms.c
+++ b/sys/arch/atari/dev/ms.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ms.c,v 1.5 1996/04/12 08:39:22 leo Exp $ */
+/* $NetBSD: ms.c,v 1.6 1996/04/23 11:02:01 leo Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman.
@@ -132,6 +132,12 @@ int size, type;
switch (type) {
case KBD_JOY1_PKG:
/*
+ * Ignore if in emulation mode
+ */
+ if (ms->ms_emul3b)
+ return;
+
+ /*
* There are some mice that have their middle button
* wired to the 'up' bit of joystick 1....
* Simulate a mouse packet with dx = dy = 0, the middle