All of lore.kernel.org
 help / color / mirror / Atom feed
* Handling macros with input devices
@ 2010-04-14 18:19 Rick L. Vinyard, Jr.
  2010-04-14 19:08 ` Rick L. Vinyard, Jr.
  2010-04-14 22:56 ` Dmitry Torokhov
  0 siblings, 2 replies; 4+ messages in thread
From: Rick L. Vinyard, Jr. @ 2010-04-14 18:19 UTC (permalink / raw)
  To: liux-input, Dmitry Torokhov, Jiri Kosina, Linux, Linux USB

One of the sticking points I have with the G13 driver is that I'd like it
to have support for macros. The reason I'd like to support macros is that
the G13's raison d'etre is to allow the end user to customize the device
with their own macros.

However, I've been looking around and I can't find any support for macros
within the kernel.

In particular, I have support for getkeycode and setkeycode ioctl's. I was
thinking of supporting at least setkeycode to allow a standard way to set
a one key macro. Supporting getkeycode and setting keybit are more
problematic.

If someone has already brought this issue up I apologize, but I couldn't
find any discussion on the linux-input list relating to macros (at least
other than preprocessor macros).

Any suggestions?

-- 

Rick


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Handling macros with input devices
  2010-04-14 18:19 Handling macros with input devices Rick L. Vinyard, Jr.
@ 2010-04-14 19:08 ` Rick L. Vinyard, Jr.
  2010-04-14 22:56 ` Dmitry Torokhov
  1 sibling, 0 replies; 4+ messages in thread
From: Rick L. Vinyard, Jr. @ 2010-04-14 19:08 UTC (permalink / raw)
  To: Rick L. Vinyard, Jr.; +Cc: linux-input

One of the sticking points I have with the G13 driver is that I'd like it
to have support for macros. The reason I'd like to support macros is that
the G13's raison d'etre is to allow the end user to customize the device
with their own macros.

However, I've been looking around and I can't find any support for macros
within the kernel.

In particular, I have support for getkeycode and setkeycode ioctl's. I was
thinking of supporting at least setkeycode to allow a standard way to set
a one key macro. Supporting getkeycode and setting keybit are more
problematic.

If someone has already brought this issue up I apologize, but I couldn't
find any discussion on the linux-input list relating to macros (at least
other than preprocessor macros).

Any suggestions?

-- 

Rick



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Handling macros with input devices
  2010-04-14 18:19 Handling macros with input devices Rick L. Vinyard, Jr.
  2010-04-14 19:08 ` Rick L. Vinyard, Jr.
@ 2010-04-14 22:56 ` Dmitry Torokhov
  2010-04-15 15:20   ` Rick L. Vinyard, Jr.
  1 sibling, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2010-04-14 22:56 UTC (permalink / raw)
  To: Rick L. Vinyard, Jr.; +Cc: liux-input, Jiri Kosina, Linux, Linux USB

Hi Rick,

On Wed, Apr 14, 2010 at 12:19:30PM -0600, Rick L. Vinyard, Jr. wrote:
> One of the sticking points I have with the G13 driver is that I'd like it
> to have support for macros. The reason I'd like to support macros is that
> the G13's raison d'etre is to allow the end user to customize the device
> with their own macros.
> 
> However, I've been looking around and I can't find any support for macros
> within the kernel.
> 
> In particular, I have support for getkeycode and setkeycode ioctl's. I was
> thinking of supporting at least setkeycode to allow a standard way to set
> a one key macro. Supporting getkeycode and setting keybit are more
> problematic.
> 
> If someone has already brought this issue up I apologize, but I couldn't
> find any discussion on the linux-input list relating to macros (at least
> other than preprocessor macros).
> 
> Any suggestions?
> 

I consider macro handling to be userspace task. If needed, macro
sequences can be injected back into the kernel via uinput devices to be
consumed by regualar applications.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Handling macros with input devices
  2010-04-14 22:56 ` Dmitry Torokhov
@ 2010-04-15 15:20   ` Rick L. Vinyard, Jr.
  0 siblings, 0 replies; 4+ messages in thread
From: Rick L. Vinyard, Jr. @ 2010-04-15 15:20 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: liux-input, Jiri Kosina, Linux, Linux USB


Dmitry Torokhov wrote:
> Hi Rick,
>
> On Wed, Apr 14, 2010 at 12:19:30PM -0600, Rick L. Vinyard, Jr. wrote:
>> One of the sticking points I have with the G13 driver is that I'd like
>> it
>> to have support for macros. The reason I'd like to support macros is
>> that
>> the G13's raison d'etre is to allow the end user to customize the device
>> with their own macros.
>>
>> However, I've been looking around and I can't find any support for
>> macros
>> within the kernel.
>>
>> In particular, I have support for getkeycode and setkeycode ioctl's. I
>> was
>> thinking of supporting at least setkeycode to allow a standard way to
>> set
>> a one key macro. Supporting getkeycode and setting keybit are more
>> problematic.
>>
>> If someone has already brought this issue up I apologize, but I couldn't
>> find any discussion on the linux-input list relating to macros (at least
>> other than preprocessor macros).
>>
>> Any suggestions?
>>
>
> I consider macro handling to be userspace task. If needed, macro
> sequences can be injected back into the kernel via uinput devices to be
> consumed by regualar applications.

That clarifies alot. Thanks.

-- 

Rick


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-15 15:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-14 18:19 Handling macros with input devices Rick L. Vinyard, Jr.
2010-04-14 19:08 ` Rick L. Vinyard, Jr.
2010-04-14 22:56 ` Dmitry Torokhov
2010-04-15 15:20   ` Rick L. Vinyard, Jr.

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.