HWInput: Add Play/Pause Support (#56426)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56426

Adds Channel Play/Pause events to HWInput.

Changelog:
[Android][Added] - Channel play/pause hardware events.

Reviewed By: Abbondanzo

Differential Revision: D100621746

fbshipit-source-id: b3a5616569f0b097e0e1226a8deb927212cdab20
This commit is contained in:
Nishil Shah authored and meta-codesync[bot] committed 2026-04-13 12:20:09 -07:00
1 parent e4f0509973
commit 5087aa0dba
1 file changed
+2
@@ -80,6 +80,8 @@ internal class ReactAndroidHWInputDeviceHelper {
KeyEvent.KEYCODE_DPAD_CENTER to "select",
KeyEvent.KEYCODE_ENTER to "select",
KeyEvent.KEYCODE_SPACE to "select",
KeyEvent.KEYCODE_MEDIA_PLAY to "play",
KeyEvent.KEYCODE_MEDIA_PAUSE to "pause",
KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE to "playPause",
KeyEvent.KEYCODE_MEDIA_REWIND to "rewind",
KeyEvent.KEYCODE_MEDIA_FAST_FORWARD to "fastForward",