Re: [PATCH libinput] Add libinput_device_keyboard_has_key()

2015-04-24 Thread Derek Foreman
On 23/04/15 08:22 PM, Peter Hutterer wrote: > On Thu, Apr 23, 2015 at 05:15:01PM -0500, Derek Foreman wrote: >> On 22/04/15 07:05 PM, Peter Hutterer wrote: >>> On Wed, Apr 22, 2015 at 08:45:21AM -0500, Derek Foreman wrote: On 21/04/15 11:44 PM, Peter Hutterer wrote: > Similar to libinput_d

Re: [PATCH libinput] Add libinput_device_keyboard_has_key()

2015-04-23 Thread Peter Hutterer
On Thu, Apr 23, 2015 at 05:15:01PM -0500, Derek Foreman wrote: > On 22/04/15 07:05 PM, Peter Hutterer wrote: > > On Wed, Apr 22, 2015 at 08:45:21AM -0500, Derek Foreman wrote: > >> On 21/04/15 11:44 PM, Peter Hutterer wrote: > >>> Similar to libinput_device_pointer_has_button(), this function retur

Re: [PATCH libinput] Add libinput_device_keyboard_has_key()

2015-04-23 Thread Derek Foreman
On 22/04/15 07:05 PM, Peter Hutterer wrote: > On Wed, Apr 22, 2015 at 08:45:21AM -0500, Derek Foreman wrote: >> On 21/04/15 11:44 PM, Peter Hutterer wrote: >>> Similar to libinput_device_pointer_has_button(), this function returns >>> whether >>> a given device has a specific keycode. >>> >>> This

Re: [PATCH libinput] Add libinput_device_keyboard_has_key()

2015-04-22 Thread Peter Hutterer
On Wed, Apr 22, 2015 at 08:45:21AM -0500, Derek Foreman wrote: > On 21/04/15 11:44 PM, Peter Hutterer wrote: > > Similar to libinput_device_pointer_has_button(), this function returns > > whether > > a given device has a specific keycode. > > > > This enables a caller to determine if the device i

Re: [PATCH libinput] Add libinput_device_keyboard_has_key()

2015-04-22 Thread Derek Foreman
On 21/04/15 11:44 PM, Peter Hutterer wrote: > Similar to libinput_device_pointer_has_button(), this function returns whether > a given device has a specific keycode. > > This enables a caller to determine if the device is really a keyboard (check > for KEY_A-KEY_Z) or just a media key device (chec

Re: [PATCH libinput] Add libinput_device_keyboard_has_key()

2015-04-22 Thread Hans de Goede
Hi, On 22-04-15 06:44, Peter Hutterer wrote: Similar to libinput_device_pointer_has_button(), this function returns whether a given device has a specific keycode. This enables a caller to determine if the device is really a keyboard (check for KEY_A-KEY_Z) or just a media key device (check for

[PATCH libinput] Add libinput_device_keyboard_has_key()

2015-04-22 Thread Peter Hutterer
Similar to libinput_device_pointer_has_button(), this function returns whether a given device has a specific keycode. This enables a caller to determine if the device is really a keyboard (check for KEY_A-KEY_Z) or just a media key device (check for KEY_PLAY or somesuch), depending on the context