5 // Created by Sam McCall on 5/05/09.
10 +(Target*) unstringify: (NSString*) str withConfigList: (NSArray*) configs {
11 NSArray* components = [str componentsSeparatedByString:@"~"];
12 NSParameterAssert([components count]);
13 NSString* typeTag = [components objectAtIndex:0];
14 if([typeTag isEqualToString:@"key"])
15 return [TargetKeyboard unstringifyImpl:components];
16 if([typeTag isEqualToString:@"cfg"])
17 return [TargetConfig unstringifyImpl:components withConfigList:configs];
18 if([typeTag isEqualToString:@"mmove"])
19 return [TargetMouseMove unstringifyImpl:components];
20 if([typeTag isEqualToString:@"mbtn"])
21 return [TargetMouseBtn unstringifyImpl:components];
22 if([typeTag isEqualToString:@"mscroll"])
23 return [TargetMouseScroll unstringifyImpl:components];
24 if([typeTag isEqualToString:@"mtoggle"])
25 return [TargetToggleMouseScope unstringifyImpl:components];
27 NSParameterAssert(NO);
31 -(NSString*) stringify {
32 [self doesNotRecognizeSelector:_cmd];
36 -(void) trigger: (JoystickController *)jc {
37 [self doesNotRecognizeSelector:_cmd];
40 -(void) untrigger: (JoystickController *)jc {
44 -(void) update: (JoystickController *) jc {
45 [self doesNotRecognizeSelector:_cmd];
48 -(BOOL) isContinuous {
52 @synthesize inputValue, running;