Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 547 → Rev 548

/shark/trunk/drivers/input/include/drivers/shark_joy26.h
21,6 → 21,21
#ifndef __SHARK_JOY26_H__
#define __SHARK_JOY26_H__
 
/* Flag Codes */
#define BTN1_BIT 0x01
#define BTN2_BIT 0x02
#define BTN3_BIT 0x04
#define BTN4_BIT 0x08
 
#define isButton1(b) (b & BTN1_BIT)
#define isButton2(b) (b & BTN2_BIT)
#define isButton3(b) (b & BTN3_BIT)
#define isButton4(b) (b & BTN4_BIT)
#define isButton(b, n) (b & (1<<n))
 
void joy_getstatus(int *axe0, int *axe1, int *axe2, int *axe3, int *button);
void joy_setstatus(int axe0, int axe1, int axe2, int axe3, int button);
 
void joy_enable(void);
void joy_disable(void);