Improved analog support for scrolling, and allow speed adjustments.
[enjoyable.git] / NJOutputMouseButton.m
index 0cc403f..ad44b39 100644 (file)
@@ -14,7 +14,7 @@
 }
 
 - (NSDictionary *)serialize {
-    return @{ @"type": @"mouse button", @"button": @(_button) };
+    return @{ @"type": self.class.serializationCode, @"button": @(_button) };
 }
 
 + (NJOutput *)outputDeserialize:(NSDictionary *)serialization