aboutsummaryrefslogtreecommitdiff
path: root/MOUSEBUT.C
blob: 8a9eba77cdcf0cfafa94020ec28229387773d06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
    }