RobotKit API
|
A classs for a joy stick style drive control. More...
#import <RKJoyStickDriveAlgorithm.h>
Public Member Functions | |
(id) | - initWithPadSize: |
(void) | - updatePadSize: |
Properties | |
CGPoint | center |
This algorithm takes and size that represents an area the a joy stick control is dragged in, and converts x and y coordinates in this area into drive coordinates.
- (id) initWithPadSize: | (CGSize) | size |
Initializes the algorithm with the size of the drag area used for the joy stick.
size | The bounds of area used for the joy stick control. |
- (void) updatePadSize: | (CGSize) | size |
Updates the size of the screen area used for the joystick.
size | The bounds of the area used for the joystick. |
- (CGPoint) center [read, assign] |
Center point of the joy pad area