From 2c17de7fa72ca6f96f4e37faf90ac9786d0b53a0 Mon Sep 17 00:00:00 2001 From: Daniel Adams <70986246+msub2@users.noreply.github.com> Date: Fri, 19 Jul 2024 20:29:27 -1000 Subject: Gamepad: Implement GamepadHapticActuator (#32046) * Implement Servo side of GamepadHapticActuator Signed-off-by: Daniel Adams * Get build working Signed-off-by: Daniel Adams * Create effect handling on embedder side Signed-off-by: Daniel Adams * Update tracing for GamepadHapticEffect Signed-off-by: Daniel Adams * Update gilrs to point to commit with effect complete event Signed-off-by: Daniel Adams * Implement playing and preempting haptic effects Signed-off-by: Daniel Adams * Update IDL to add trigger rumble Signed-off-by: Daniel Adams * Update WPT expectations Signed-off-by: Daniel Adams * Handle stopping haptic effects from reset() Signed-off-by: Daniel Adams * ./mach fmt, fix test-tidy issues Signed-off-by: Daniel Adams * Add extra validity checks for trigger rumble Signed-off-by: Daniel Adams * Retrieve supported haptic effects from embedder Signed-off-by: Daniel Adams * Fix test expectations Signed-off-by: Daniel Adams * Add missing spec link, pin gilrs commit Signed-off-by: Daniel Adams * servoshell cargo formatting Signed-off-by: Daniel Adams * Fix Cargo.toml Signed-off-by: Daniel Adams * Additional comments, realm proof, naming Signed-off-by: Daniel Adams * ./mach fmt Signed-off-by: Daniel Adams * Update gilrs rev to gilrs-core 0.5.12 release Signed-off-by: Daniel Adams * Implement sequence ids for gamepad haptic promises Signed-off-by: Daniel Adams * Take playing effect promise instead of cloning Signed-off-by: Daniel Adams * Implement listener for reset function Signed-off-by: Daniel Adams * Fix Cargo.lock Signed-off-by: Daniel Adams * Restructure IPC listeners, add comments, handle visibility change Signed-off-by: Daniel Adams * Check that haptic effect still exists before handling ff completion event Signed-off-by: Daniel Adams * Visibility steps, add InRealm bindings for promises Signed-off-by: Daniel Adams * Add Gamepad EmbedderMsg arms to egl servo_glue Signed-off-by: Daniel Adams --------- Signed-off-by: Daniel Adams --- tests/wpt/meta/gamepad/idlharness.window.js.ini | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'tests/wpt/meta/gamepad') diff --git a/tests/wpt/meta/gamepad/idlharness.window.js.ini b/tests/wpt/meta/gamepad/idlharness.window.js.ini index 37c2bd87ea1..577d82d9237 100644 --- a/tests/wpt/meta/gamepad/idlharness.window.js.ini +++ b/tests/wpt/meta/gamepad/idlharness.window.js.ini @@ -1,28 +1,4 @@ [idlharness.window.html] - [Gamepad interface: attribute vibrationActuator] - expected: FAIL - - [GamepadHapticActuator interface: existence and properties of interface object] - expected: FAIL - - [GamepadHapticActuator interface object length] - expected: FAIL - - [GamepadHapticActuator interface object name] - expected: FAIL - - [GamepadHapticActuator interface: existence and properties of interface prototype object] - expected: FAIL - - [GamepadHapticActuator interface: existence and properties of interface prototype object's "constructor" property] - expected: FAIL - - [GamepadHapticActuator interface: existence and properties of interface prototype object's @@unscopables property] - expected: FAIL - - [GamepadHapticActuator interface: attribute effects] - expected: FAIL - [GamepadHapticActuator interface: operation playEffect(GamepadHapticEffectType, optional GamepadEffectParameters)] expected: FAIL -- cgit v1.2.3