refactored remote button
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
"input": "Respond to and read data from buttons and sensors.",
|
||||
"input.Button": "Generic button class, for device buttons and sensors.",
|
||||
"input.Button.isPressed": "Check if button is currently pressed or not.",
|
||||
"input.Button.onEvent": "Do something when a button or sensor is clicked, double clicked, etc...",
|
||||
"input.Button.onEvent": "Do something when a button or sensor is clicked, up or down.",
|
||||
"input.Button.onEvent|param|body": "code to run when the event is raised",
|
||||
"input.Button.wasPressed": "See if the button was pressed again since the last time you checked.",
|
||||
"input.ColorSensor.ambientLight": "Get current ambient light value from the color sensor.",
|
||||
@ -36,6 +36,10 @@
|
||||
"input.InfraredSensor.onObjectNear|param|handler": "the code to run when detected",
|
||||
"input.InfraredSensor.proximity": "Get the promixity measured by the infrared sensor, from ``0`` (close) to ``100`` (far)",
|
||||
"input.InfraredSensor.remoteCommand": "Get the remote commandreceived the infrared sensor.",
|
||||
"input.RemoteInfraredBeaconButton.isPressed": "Check if a remote button is currently pressed or not.",
|
||||
"input.RemoteInfraredBeaconButton.onEvent": "Do something when a button or sensor is clicked, up or down",
|
||||
"input.RemoteInfraredBeaconButton.onEvent|param|body": "code to run when the event is raised",
|
||||
"input.RemoteInfraredBeaconButton.wasPressed": "See if the remote button was pressed again since the last time you checked.",
|
||||
"input.TouchSensor.isTouched": "Check if touch sensor is touched.",
|
||||
"input.TouchSensor.onEvent": "Do something when a touch sensor is touched...",
|
||||
"input.TouchSensor.onEvent|param|body": "code to run when the event is raised",
|
||||
@ -47,11 +51,11 @@
|
||||
"input.buttonLeft": "Left button on the EV3 Brick.",
|
||||
"input.buttonRight": "Right button on the EV3 Brick.",
|
||||
"input.buttonUp": "Up button on the EV3 Brick.",
|
||||
"input.remoteBottomLeft": "Remote bottom-left button.",
|
||||
"input.remoteBottomRight": "Remote bottom-right button.",
|
||||
"input.remoteCenter": "Remote beacon (center) button.",
|
||||
"input.remoteTopLeft": "Remote top-left button.",
|
||||
"input.remoteTopRight": "Remote top-right button.",
|
||||
"input.remoteButtonBottomLeft": "Remote bottom-left button.",
|
||||
"input.remoteButtonBottomRight": "Remote bottom-right button.",
|
||||
"input.remoteButtonCenter": "Remote beacon (center) button.",
|
||||
"input.remoteButtonTopLeft": "Remote top-left button.",
|
||||
"input.remoteButtonTopRight": "Remote top-right button.",
|
||||
"output.Motor.off": "Power off the motor.",
|
||||
"output.Motor.on": "Power on the motor.",
|
||||
"output.Motor.onForTime": "Power on the motor for a specified number of milliseconds.",
|
||||
|
@ -44,6 +44,9 @@
|
||||
"input.InfraredSensor.onObjectNear|block": "on %sensor|object near",
|
||||
"input.InfraredSensor.proximity|block": "%infrared|proximity",
|
||||
"input.InfraredSensor.remoteCommand|block": "%infrared|remote command",
|
||||
"input.RemoteInfraredBeaconButton.isPressed|block": "%button|is pressed",
|
||||
"input.RemoteInfraredBeaconButton.onEvent|block": "on %button|%event",
|
||||
"input.RemoteInfraredBeaconButton.wasPressed|block": "%button|was pressed",
|
||||
"input.TouchSensor.isTouched|block": "%sensor|is touched",
|
||||
"input.TouchSensor.onEvent|block": "on %sensor|%event",
|
||||
"input.UltraSonicSensor.distance|block": "%sensor|distance",
|
||||
@ -65,11 +68,11 @@
|
||||
"input.infraredSensor2|block": "infrared sensor 2",
|
||||
"input.infraredSensor3|block": "infrared sensor 3",
|
||||
"input.infraredSensor4|block": "infrared sensor 4",
|
||||
"input.remoteBottomLeft|block": "remote bottom-left",
|
||||
"input.remoteBottomRight|block": "remote bottom-right",
|
||||
"input.remoteCenter|block": "remote center",
|
||||
"input.remoteTopLeft|block": "remote top-left",
|
||||
"input.remoteTopRight|block": "remote top-right",
|
||||
"input.remoteButtonBottomLeft|block": "remote button bottom-left",
|
||||
"input.remoteButtonBottomRight|block": "remote button bottom-right",
|
||||
"input.remoteButtonCenter|block": "remote button center",
|
||||
"input.remoteButtonTopLeft|block": "remote button top-left",
|
||||
"input.remoteButtonTopRight|block": "remote button top-right",
|
||||
"input.touchSensor1|block": "touch sensor 1",
|
||||
"input.touchSensor2|block": "touch sensor 2",
|
||||
"input.touchSensor3|block": "touch sensor 3",
|
||||
@ -106,6 +109,7 @@
|
||||
"{id:group}Gyro Sensor": "Gyro Sensor",
|
||||
"{id:group}Infrared Sensor": "Infrared Sensor",
|
||||
"{id:group}Motors": "Motors",
|
||||
"{id:group}Remote Infrared Beacon": "Remote Infrared Beacon",
|
||||
"{id:group}Touch Sensor": "Touch Sensor",
|
||||
"{id:group}Ultrasonic Sensor": "Ultrasonic Sensor"
|
||||
}
|
Reference in New Issue
Block a user