yokobond / xcx-gamepad

Add gamepad on Xcratch.
0 stars 0 forks source link

Add vibration #2

Open yokobond opened 3 years ago

yokobond commented 3 years ago

Add haptic actuator block.

vibrate P(playerIndex) intensity (intensity) during (duration) seconds Vibrate the selected controller with pulse the intensity [0-100] during the duration seconds.

ref: GamepadHapticActuator - Web APIs | MDN gamepadHapticActuatorInstance.pulse(value, duration).then(function(result) { ... });

BrickEducation commented 2 months ago

please Dear Yokobond add the vibration Block as in the TurboWarp AddOn