File:  [RetroPC.NET] / np2 / macosx / hid.h
Revision 1.1: download - view: text, annotated - select for diffs
Wed Oct 29 01:44:44 2003 JST (22 years ago) by tk800
Branches: MAIN
CVS tags: VER_0_82_x64, VER_0_82, VER_0_81A, VER_0_81, VER_0_80, VER_0_79, VER_0_78, VER_0_77, VER_0_76, VER_0_75, VER_0_74, VER_0_73, VER_0_72, VER_0_71, VER_0_70, HEAD
Add JoyPad, SoundRec, SeekSnd, NewDisk, etc.

/*
 *  hid.h
 *  from X1EMx
 *
 *  Created by tk800 on Mon Apr 28 2003.
 *
 */

#include	"HID_Utilities_External.h"

typedef struct {
    pRecElement Element;
    pRecDevice Device;
} pRecSetting;

#ifdef __cplusplus
extern "C" {
#endif

bool getCurrentPosition(int num, bool getPositiveValue);
bool getCurrenButton(int num);

void hid_init(void);
void hid_clear(void);

void initTemporal(void);
void revertTemporal(void);
Boolean setJoypad(OSType type, char* name);
void changeJoyPadSetup (void );
bool getJoypadName(OSType type, char* name);

#ifdef __cplusplus
}
#endif

#define	hid_up		1
#define	hid_down	2
#define	hid_right	3
#define	hid_left	4
#define	hid_button1	5
#define	hid_button2	6

#define	JOYPAD_UP		'jpup'
#define	JOYPAD_DOWN		'jpdn'
#define	JOYPAD_LEFT		'jplf'
#define	JOYPAD_RIGHT	'jprt'
#define	JOYPAD_ABUTTON	'jpab'
#define	JOYPAD_BBUTTON	'jpbb'

RetroPC.NET-CVS <cvs@retropc.net>