Closed rwaldron closed 10 years ago
Yeah that would be great.
@divanvisagie did you ever get round to investigating using the within
mixin with the xbox controller?
Nope , would you like me to get around to it?
Yeah that would be awesome
On it!
So here would we be looking for something like this?
sensor.within('righttrigger', [low, high], function() {
... invoked whenever the sensor's reading is within the low/high boundary
});
I've published this as part of v0.4.3: https://github.com/andrew/node-xbox-controller/releases/tag/v0.4.3
In Johnny-Five I've implemented a "within" method that looks something like:
If this seems useful for node-xbox-controller, I will gladly implement support