pxt-common-packages
Version:
Microsoft MakeCode (PXT) common packages
33 lines (28 loc) • 1.04 kB
TypeScript
// Auto-generated. Do not edit.
declare namespace gamepad {
/**
* Set the button state to down
*/
//% help=gamepad/set-button
//% blockId=joystickSetButton block="gamepad button %index=joystickStandardButton|%down=toggleDownUp"
//% weight=100 shim=gamepad::setButton
function setButton(index: int32, down: boolean): void;
/**
* Set the current move on the gamepad
**/
//% blockId=gamepadMove block="gamepad %index|move by x %x|y %y"
//% help=gamepad/move
//% index.min=0 index.max=1
//% blockGap=8 shim=gamepad::move
function move(index: int32, x: int32, y: int32): void;
/**
* Set the throttle state
*/
//% blockId=gamepadSetThrottle block="gamepad set throttle %index|to %value"
//% gamepad/set-throttle blockHidden=1
//% index.min=0 index.max=1
//% value.min=0 value.max=31
//%help=gamepad/set-throttle shim=gamepad::setThrottle
function setThrottle(index: int32, value: int32): void;
}
// Auto-generated. Do not edit. Really.