jawaff / KinectController

Control your computer using your body. The KinectController turns the Kinect into a controller that allows configurable actions to be emulated when configurable gestures are triggered by the user.
0 stars 0 forks source link

Change the getType() methods declared in the posturerules classes to be more automated. #31

Closed jawaff closed 8 years ago

jawaff commented 8 years ago

It isn't easy to make those correct because of the luxery of copy-paste. So it'd be nice if the getType() RuleType was based on the class name.

jawaff commented 8 years ago

I'm not sure if it's a good idea to change the getType() so that it's dependent on the class name. It's much more efficient to have a value that can just be returned there. The posturerule classes are going to be touched by a lot of things and should be quick in their responses.