| [ |
| { |
| "name": "Initial check - no events should be produced", |
| "reports": [ |
| [0x01, 0x00], |
| [0x01, 0x00] |
| ], |
| "source": "KEYBOARD", |
| "events": [ |
| ] |
| }, |
| |
| { |
| "name": "Press VOLUME_UP", |
| "reports": [ |
| [0x01, 0x01], |
| [0x01, 0x00] |
| ], |
| "source": "KEYBOARD", |
| "events": [ |
| {"action": "DOWN", "keycode": "VOLUME_UP"}, |
| {"action": "UP", "keycode": "VOLUME_UP"} |
| ] |
| }, |
| |
| { |
| "name": "Press VOLUME_DOWN", |
| "reports": [ |
| [0x01, 0x02], |
| [0x01, 0x00] |
| ], |
| "source": "KEYBOARD", |
| "events": [ |
| {"action": "DOWN", "keycode": "VOLUME_DOWN"}, |
| {"action": "UP", "keycode": "VOLUME_DOWN"} |
| ] |
| }, |
| |
| { |
| "name": "Press play/pause (black round middle button)", |
| "reports": [ |
| [0x01, 0x04], |
| [0x01, 0x00] |
| ], |
| "source": "KEYBOARD", |
| "events": [ |
| {"action": "DOWN", "keycode": "MEDIA_PLAY_PAUSE"}, |
| {"action": "UP", "keycode": "MEDIA_PLAY_PAUSE"} |
| ] |
| } |
| ] |