Clean up root folder.
[enjoyable.git] / NJInputButton.m
diff --git a/NJInputButton.m b/NJInputButton.m
deleted file mode 100644 (file)
index 0c3b0ce..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-//
-//  NJInputButton.m
-//  Enjoy
-//
-//  Created by Sam McCall on 5/05/09.
-//
-
-#import "NJInputButton.h"
-
-@implementation NJInputButton {
-    long _max;
-}
-
-- (id)initWithName:(NSString *)name idx:(int)idx max:(long)max {
-    if ((self = [super init])) {
-        _max = max;
-        if (name.length)
-            self.name = [NSString stringWithFormat:@"Button %d - %@", idx, name];
-        else
-            self.name = [NSString stringWithFormat:@"Button %d", idx];
-    }
-    return self;
-}
-
-- (id)findSubInputForValue:(IOHIDValueRef)val {
-    return (IOHIDValueGetIntegerValue(val) == _max) ? self : nil;
-}
-
-- (void)notifyEvent:(IOHIDValueRef)value {
-    self.active = IOHIDValueGetIntegerValue(value) == _max;
-    self.magnitude = IOHIDValueGetIntegerValue(value) / (float)_max;
-}
-
-@end