Skip to contentSkip to conversation

question on device registration

DISCUSSION Oliver Neukum 2 participants 2 messages Jul 2, 2008 – Mar 23, 2009 HID

lore
Share & tools
lore
#0 lore raw

Hi,

what happens if you call input_report_key(), input_report_rel() or input_sync() for a device before you call input_register_device() ?

Regards
Oliver

#1 lore raw
Quoted 5 lines · On Wednesday 02 July 2008 13:08:56 Oliver Neukum wrote:

Hi,

what happens if you call input_report_key(), input_report_rel() or input_sync() for a device before you call input_register_device() ?

Well, this surely be a blast from the past for you but I was going through my old mail...

You can safely use input_report* on an unrefistered input device as long as it was alloocated with input_allocate_device(). The reported events will simply be dropped by the input core.

Signature · 1 line
Dmitry