[haiku-development] Re: HID Consumer Driver

  • From: Enrique Medina Gremaldos <quiqueiii@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 28 Mar 2022 20:57:23 +0200


And perhaps we need one to send ACPI key events like brightness up/down
maybe and other special ones?


Who is handling the acpi power button right now? Are you suggesting to
route acpi input events to input_server too?

El lun, 28 mar 2022 a las 17:53, Fredrik Holmqvist (<
fredrik.holmqvist@xxxxxxxxx>) escribió:



Den mån 28 mars 2022 kl 12:08 skrev Enrique Medina Gremaldos <
quiqueiii@xxxxxxxxx>:

A new handler is useful if you want to send the events to a different
place. Currently we have 3:

- Joystick: sending data to /dev/joysticks for the game kit BJoystick
- Mouse and keyboard: sending data to /dev/input/ for the input_server

We can introduce a 4th one. Where would its data go? To me it makes
sense that it would still go
to input_server anyway.


We have 4, in fact:
- Joystick
- Mouse sending mouse_movement structures (keyboard_mouse_driver.h)
- Keyboard sending raw_key_info and led_info structures
- Tablet sending tablet_movement structures. This handles drawing
digitizers but also touch screens.


And perhaps we need one to send ACPI key events like brightness up/down
maybe and other special ones?
I was planning to experiment with sending messages from the kernel, but no
idea if that is a good idea or not.

/Fredrik Holmqvist, TQH

Other related posts: