Reply
Logi Nu
Cynical
Posts: 3
Registered: ‎05-04-2011
0

Re: G930 Keyboard and Mouse Emulation Plugins

The only one that really pops into my head right now is ctrl+u. I might have more once I get my laptop back but the last thing I want to be is a bother, so I'm willing to wait until I know what ctrl+keystrokes I need before I make a formal request.

Logi Journeyman
Asmodian
Posts: 264
Registered: ‎10-11-2010
0

Re: G930 Keyboard and Mouse Emulation Plugins

Well here is one with just ctrl-u added, let me know any other keys you need. :smileyhappy:

 

G930 Keyboard.dll

___________________________________________
My current plugins (v1.9) for the legacy G930 drivers:
http://forums.logitech.com/t5/Headphones-Headsets-Microphones/G930-Keyboard-and-Mouse-Emulation-Plugins/td-p/503848
Logi Apprentice
EamonnDH
Posts: 100
Registered: ‎03-21-2011
0

Re: G930 Keyboard and Mouse Emulation Plugins

Any possibility of a G35 version of this, or even the source code?

Logi Journeyman
Asmodian
Posts: 264
Registered: ‎10-11-2010
0

Re: G930 Keyboard and Mouse Emulation Plugins

[ Edited ]

I don't think the G35 has the same plugin system, there is no SDK for the G35 (and these plugins use Logitech's API).

 

I have looked into watching the USB data and getting the button press & releases directly as a workaround for the limitations of the API but this code doesn't do it at all.  If you get any code examples for USB interactions I would love to see them.

 

Here are the keyboard bits of code I use, the rest is just the example in the SDK:

 

[CODE]

void KeyDown ( short vk, int dvk, bool bExtended ) {

  KEYBDINPUT kb={0};  INPUT Input={0};

  if ( bExtended )  kb.dwFlags  = KEYEVENTF_EXTENDEDKEY;

  kb.wVk  = vk;  kb.wScan = dvk;

  Input.type  = INPUT_KEYBOARD;  Input.ki  = kb;

  ::smileyfrustrated:endInput(1,&Input,sizeof(Input));

}

 

void KeyUp ( short vk, int dvk, bool bExtended ) {

  KEYBDINPUT kb={0};  INPUT Input={0};

  kb.dwFlags  =  KEYEVENTF_KEYUP;

  if ( bExtended )  kb.dwFlags |= KEYEVENTF_EXTENDEDKEY;

  kb.wVk  = vk;  kb.wScan = dvk;

  Input.type  = INPUT_KEYBOARD;  Input.ki  = kb;

  ::smileyfrustrated:endInput(1,&Input,sizeof(Input));

}

 

void PressKey ( short vk, int dvk, bool bExtended){

  int cvk = MapVirtualKey( vk, MAPVK_VK_TO_VSC );

  if (cvk != 0 ) {dvk = cvk;}

  KeyDown ( vk, dvk, bExtended );

  KeyUp ( vk, dvk, bExtended );

}

 

void ToggleKey( short vk, int dvk, bool bExtended ){

  int cvk = MapVirtualKey( vk, MAPVK_VK_TO_VSC );

  if (cvk != 0 ) {dvk = cvk;}

  BOOL state = GetAsyncKeyState( vk ) < 0;

  if ( !state ) { KeyDown(vk, dvk, bExtended ); }

  if ( state ) { KeyUp(vk, dvk, bExtended); }

}

[/CODE]

 

SendInput() is in user32.lib:

#pragma comment(lib, "user32.lib")

___________________________________________
My current plugins (v1.9) for the legacy G930 drivers:
http://forums.logitech.com/t5/Headphones-Headsets-Microphones/G930-Keyboard-and-Mouse-Emulation-Plugins/td-p/503848
Logi Apprentice
EamonnDH
Posts: 100
Registered: ‎03-21-2011
0

Re: G930 Keyboard and Mouse Emulation Plugins

I don't quite understand can you show me where you got the API?

Logi Journeyman
Asmodian
Posts: 264
Registered: ‎10-11-2010
0

Re: G930 Keyboard and Mouse Emulation Plugins

The SDK is in the driver downloads for the G930.

 

G930 plugin SDK

___________________________________________
My current plugins (v1.9) for the legacy G930 drivers:
http://forums.logitech.com/t5/Headphones-Headsets-Microphones/G930-Keyboard-and-Mouse-Emulation-Plugins/td-p/503848
Logi Apprentice
EamonnDH
Posts: 100
Registered: ‎03-21-2011
0

Re: G930 Keyboard and Mouse Emulation Plugins

What the hell? The G35 doesn't have a SDK but the G930 has one?

:smileysad:

Logi Rook
Kensiko
Posts: 56
Registered: ‎10-11-2007
0

Re: G930 Keyboard and Mouse Emulation Plugins

How could I prevent the headset to turn off only when charging ? Turning it on when it is charging is not always working easily, it's a real problem.

Logi Journeyman
Asmodian
Posts: 264
Registered: ‎10-11-2010
0

Re: G930 Keyboard and Mouse Emulation Plugins

Well my plugin allows you to manually turn on and off the auto-off so if you remembered to use it when starting charging it will keep them on.

___________________________________________
My current plugins (v1.9) for the legacy G930 drivers:
http://forums.logitech.com/t5/Headphones-Headsets-Microphones/G930-Keyboard-and-Mouse-Emulation-Plugins/td-p/503848
Logi Journeyman
Asmodian
Posts: 264
Registered: ‎10-11-2010
0

Re: G930 Keyboard and Mouse Emulation Plugins

Here is a new version.  I went a bit crazy and made a seperate plugin for each modifier key and some combination of modifer keys for all keyboard keys.

 

This includes: Alt, Ctrl, Shift, Win, Alt+Ctrl, Alt+Ctrl+Shift, Alt+Shift, Alt+Win, Ctrl+Shift, Ctrl+Win, and Shift+Win.

 

The pack also includes the standard keyboard, key toggle, mouse, and power management plugins.

 

AsmodianG930Plugins-v1.6.zip

___________________________________________
My current plugins (v1.9) for the legacy G930 drivers:
http://forums.logitech.com/t5/Headphones-Headsets-Microphones/G930-Keyboard-and-Mouse-Emulation-Plugins/td-p/503848