Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.state = [
- 0xA1, # This is an input report
- 0x01, # Usage report = Keyboard
- # Bit array for Modifier keys
- [0, # Right GUI - (usually the Windows key)
- 0, # Right ALT
- 0, # Right Shift
- 0, # Right Control
- 0, # Left GUI - (again, usually the Windows key)
- 0, # Left ALT
- 0, # Left Shift
- 0], # Left Control
- 0x00, # Vendor reserved
- 0x04, # The W key is pressed
- 0x00,
- 0x00,
- 0x00,
- 0x00,
- 0x00 ]
- bt.send_input(self.state)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement