aboutsummaryrefslogtreecommitdiff
path: root/MOUSEBUT.C
diff options
context:
space:
mode:
Diffstat (limited to 'MOUSEBUT.C')
-rw-r--r--MOUSEBUT.C20
1 files changed, 20 insertions, 0 deletions
diff --git a/MOUSEBUT.C b/MOUSEBUT.C
new file mode 100644
index 0000000..8a9eba7
--- /dev/null
+++ b/MOUSEBUT.C
@@ -0,0 +1,20 @@
+/*----------------------------------------------------------------------*/
+/* */
+/* MouseBut.c */
+/* */
+/*----------------------------------------------------------------------*/
+
+#include <exec\types.h>
+#include <hardware\cia.h>
+#include <hardware\custom.h>
+
+extern struct Custom custom;
+extern struct CIA ciaa;
+
+SHORT MouseBut() {
+ register SHORT v = 0;
+ if ( (ciaa.ciapra & 0x40) == 0) v |= 1;
+ if ( (custom.potinp & 0x400) == 0) v |= 2;
+ return(v);
+ }
+