Package org.hyperonline.hyperlib.oi
Annotation Type MapJoystick
-
@Retention(RUNTIME) @Target(TYPE) public @interface MapJoystickThe MapJoystick annotation specifies how a joystick should be used in the operator interface. This annotation is read by the runtime as well as by RobotInspector. This should be applied to a public static class inside the OI map class. For example:public class OIMap { @MapJoystick(port = 0, role = Role.LEFT_DRIVER, type = Type.LOGITECH_DUAL_ACTION) public static class LeftDriver { // specify buttons/commands here } }
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description intportThe port the joystick is connected to.MapJoystick.RoleroleThe role the joystick serves, e.g.MapJoystick.TypetypeThe physical model of joystick used.
-
-
-
-
role
MapJoystick.Role role
The role the joystick serves, e.g. right driver, left operator, etc.- Returns:
- The role the joystick serves.
- See Also:
OI.leftDriver(),OI.rightDriver(),OI.leftOperator(),OI.rightOperator()
-
-
-
type
MapJoystick.Type type
The physical model of joystick used. This determines how the diagrams are mapped, and what button numbers are allowed.- Returns:
- The type of the joystick.
-
-