projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Analog mouse scrolling.
[enjoyable.git]
/
TargetToggleMouseScope.m
diff --git
a/TargetToggleMouseScope.m
b/TargetToggleMouseScope.m
index
9e986df
..
968237c
100644
(file)
--- a/
TargetToggleMouseScope.m
+++ b/
TargetToggleMouseScope.m
@@
-3,23
+3,28
@@
// Enjoy
//
// Created by Yifeng Huang on 7/28/12.
// Enjoy
//
// Created by Yifeng Huang on 7/28/12.
-// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "TargetToggleMouseScope.h"
//
#import "TargetToggleMouseScope.h"
+#import "ApplicationController.h"
+#import "JoystickController.h"
+
@implementation TargetToggleMouseScope
@implementation TargetToggleMouseScope
-
-(NSString*) stringify
{
-
return [[NSString alloc] initWithFormat: @"mtoggle"]
;
+
+ (NSString *)serializationCode
{
+
return @"mtoggle"
;
}
}
-+(TargetToggleMouseScope*) unstringifyImpl: (NSArray*) comps {
- NSParameterAssert([comps count] == 1);
- TargetToggleMouseScope* target = [[TargetToggleMouseScope alloc] init];
- return target;
+- (NSDictionary *)serialize {
+ return @{ @"type": @"mtoggle" };
}
}
++ (Target *)targetDeserialize:(NSDictionary *)serialization
+ withConfigs:(NSArray *)configs {
+ TargetToggleMouseScope *target = [[TargetToggleMouseScope alloc] init];
+ return target;
+}
- (void)trigger {
// FIXME: It's hacky to get at the controller this way, but it's
// also hacky to pass it. Shouldn't need to do either.
- (void)trigger {
// FIXME: It's hacky to get at the controller this way, but it's
// also hacky to pass it. Shouldn't need to do either.