forked from kendalpercimoney/enjoy2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJoystick.h
36 lines (31 loc) · 818 Bytes
/
Joystick.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// Joystick.h
// Enjoy
//
// Created by Sam McCall on 4/05/09.
// Copyright 2009 University of Otago. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class JSAction;
@interface Joystick : NSObject {
int vendorId;
int productId;
int index;
NSString* productName;
IOHIDDeviceRef device;
NSMutableArray* children;
NSString* name;
}
@property(readwrite) int vendorId;
@property(readwrite) int productId;
@property(readwrite) int index;
@property(readwrite, copy) NSString* productName;
@property(readwrite) IOHIDDeviceRef device;
@property(readonly) NSArray* children;
@property(readonly) NSString* name;
-(void) populateActions;
-(void) invalidate;
-(id) handlerForEvent: (IOHIDValueRef) value;
-(id)initWithDevice: (IOHIDDeviceRef) newDevice;
-(JSAction*) actionForEvent: (IOHIDValueRef) value;
@end