Stream Deck integra...
 
Notifications
Clear all

Stream Deck integration

59 Posts
21 Users
3 Reactions
21.2 K Views
(@dr-sim)
Eminent Member
Joined: 2 years ago
Posts: 28
 

I do not understand, how LongPress and ShortPress are working in SimHub 🙁

I thought that the following would be possible: Assign key "a" with "ShortPress" to e.g. a ShakeIt Bass effect group "Increment gain" and assign key "a" with "LongPress" to "Decrement gain". But this assignment is not possible.

So: How are ShortPress and LongPress working?


   
ReplyQuote
(@exigeous)
Trusted Member
Joined: 3 years ago
Posts: 35
 

@dr-sim Thanks so much for getting back to me - funny that you'd thank ME for using your plugin as again it is I who owe you! It really is a great plugin, something I've wanted for a while but hadn't searched out yet.

As for formatting I have it working but BTW you do not include <return> - you just simply press return. Perhaps that's what you meant but I was trying to use that actual code. And for others you do not include the quotes (as you didn't mention that). I have that working great now.

As for the key presses that would be awesome if you could add that, where do you post updates to the tool? Is this your main thread or should I follow the GitHub project?

~Ross


   
ReplyQuote
(@exigeous)
Trusted Member
Joined: 3 years ago
Posts: 35
 

@dr-sim Sorry, saw your reply about long/short after I replied

How about this - could you plugin just output a keystroke by itself without going through SimHub? So then you do the logic in the plugin rather than needing SimHub to do anything. Follow me?


   
ReplyQuote
(@dr-sim)
Eminent Member
Joined: 2 years ago
Posts: 28
 

Yes, with "<return>" I meant to hit the key "return" on your keyboard.

You can output just a keystroke without SimHub. For example, to get the keystroke "Shift + A" you do the following:

Field "Hotkey": Enter "A" or "a" (without quotes)
Field "Modifiers": Tick "Shift"
Field "SimHub Control": Leave empty

Now whenever you press this Stream Deck button, the plugin will send the key codes for "Shift" and "A" to the current window. If you open Notepad or Word in the foreground and press the Stream Deck button, you will get an uppercase "A". If you hold the Stream Deck button, you will get lot's of "A"s. No SimHub is involved here.

Actually, I don't yet have an english main thread. But I think that I will open one in the RaceDepartment forum.

Regards,
Martin


   
ReplyQuote
(@exigeous)
Trusted Member
Joined: 3 years ago
Posts: 35
 

@dr-sim Sorry, I should have been clearer - I understand that you can use a Stream Deck to output keystrokes - I've had one for many years now, since the first release, and I use it extensively. What I'm asking is for the ability for your plugin to allow for TWO different outputs from a button press, one for a short press and one for a long press, just like I can do with say my wheel buttons using SimHub. I was simply saying that rather than have the plugin communicate with SimHub to setup the short/long press to do it in the Stream Deck plugin natively.

Does that make more sense? I'm not sure if that's possible with the Stream Deck SDK/etc. but it would be cool. Again to be 100% clear let me give my use case. I have a button that displays ABS<return>0 - or whatever the active ABS setting is. I'd like to be able to short press the button to have it increase ABS value by 1 where a long press would decrease it by 1. That way I need only 1 button for ABS, 1 for TC, etc. Normally I'd use a knob for this and I don't want to have to give up 2 buttons on my Stream Deck if I can help it.

That said I realize this is likely a VERY niche request so if you don't have time or interest in adding it no worries. I actually posted a request in the iRacing forums to have 2 bindings in iRacing for ABS and TC, that way I can use the encoder knobs on my wheel (that have 12 positions and match the 12 settings, so if the knob is on 6 then ABS is on 6, etc) AND a simple up/down binding. The trouble is only 1 of my 3 wheels has encoder knobs so if I'm not using that one I can't change ABS or TC, either that or I can't use the encoders at all and just have to use up/down toggles (which all my wheels have). It's just that the encoders are so much cooler I want to use them when I can.

Does that make more sense? Again thank you so much for not only the plugin but for your time in discussing this. I do think you should setup some kind of "home" for your plugin such that it would be easier for others to find it as I think MANY would benefit from it. Given I use a strange FOV that means I can't see most of the dashes in my cars being able to replicate things like Fuel, TC, ABS and temps on my Stream Deck is, in a word, AWESOME.

~Ross


   
ReplyQuote
(@dr-sim)
Eminent Member
Joined: 2 years ago
Posts: 28
 

Ok, I understood your request now 🙂 I was to much focused on SimHub and did not understand, that this was just an example.

Your request makes sense, especially for users like me, who have only have the smaller Stream Deck and not the XL variant.

I think that it should be possible to send two different keystrokes for short and long press from my Stream Deck plugin. I will create a ticket in GitHub (in the Stream Deck plugin project) and keep it on my roadmap.

Martin


   
ReplyQuote
(@fatoldpixel)
New Member
Joined: 1 year ago
Posts: 2
 

@dr-sim Thank you for the plugin, it looks very promising. I will be playing with it over the coming days but just wanted to know as i don't think it's documented. Is it possible to show flag information with this using coloured tiles?


   
ReplyQuote
(@dr-sim)
Eminent Member
Joined: 2 years ago
Posts: 28
 

One button per flag should be possible.

E.g. with a transparent or black icon for the "off" state and a green icon for the "on" state and with "SimHub Property (State)" set to "dcp.gd.Flag_Green" or "dcp.gd.Flag_Green>0". The same for all other flags.

Combining all 7 possible flags into one Stream Deck button is not possible with my plugins. But I think that I could implement a special "flag" button.....


   
ReplyQuote
(@fatoldpixel)
New Member
Joined: 1 year ago
Posts: 2
 

@dr-sim thank you for the prompt reply, I don't know much about coding, just a little lua and some python. I assume it would not be possible to create an if statement for flag satus' and then to output an image as a separate property on the stream deck?


   
ReplyQuote
(@dr-sim)
Eminent Member
Joined: 2 years ago
Posts: 28
 

A new version of the Stream Deck plugin is available.

SimHub Property Server v1.7.8: https://github.com/pre-martin/SimHubPropertyServer - same version as before, no changes

Stream Deck Plugin v1.8.51: https://github.com/pre-martin/StreamDeckSimHubPlugin - see below

As usual, please download from the "Releases" page of GitHub. The following new features are included:


   
ReplyQuote
(@dr-sim)
Eminent Member
Joined: 2 years ago
Posts: 28
 

Important

My plugin was not bundled correctly. All downloads of version 1.8.51 prior to now can not be installed with a double click into Stream Deck. Please download the same version again from https://github.com/pre-martin/StreamDeckSimHubPlugin/releases/tag/v1.8.51 - I just corrected the archive.


   
ReplyQuote
(@dr-sim)
Eminent Member
Joined: 2 years ago
Posts: 28
 

Another new version of the Stream Deck plugin is available.

SimHub Property Server v1.7.8: https://github.com/pre-martin/SimHubPropertyServer - same version as before, no changes

Stream Deck Plugin v1.9.22: https://github.com/pre-martin/StreamDeckSimHubPlugin - see below

As usual, please download from the "Releases" page of GitHub.

Along with a few bug fixes, SimHub Control Mapper Roles are now supported. This allows you to assign Stream Deck keys or Stream Deck knobs to the SimHub virtual game controller.


   
ReplyQuote
(@cadeyrn)
New Member
Joined: 12 months ago
Posts: 1
 
  • Awesome work. Had been hoping something like existed for sim racing given what is available for flight simulator and even truck simulator. Any chance of chucking on of your example profiles in the files to help get a rolling start? 

   
ReplyQuote
(@dr-sim)
Eminent Member
Joined: 2 years ago
Posts: 28
 

I'm glad you like my work. Thanks for the suggestion, I'll do it soon.


   
Cadeyrn reacted
ReplyQuote
(@dr-sim)
Eminent Member
Joined: 2 years ago
Posts: 28
 

I hope you are feeling better now.

Neither SimHub nor Stream Deck contain parts of my plugins. So you have to install both in any case.

SimHub installs a plugin in Stream Deck that allows you to use the Control Mapper Roles. This plugin can be found in Stream Deck under "Custom" - "Trigger control mapper role". However, this plugin has nothing to do with mine and the functionality of the Control Mapper Roles is also included in my buttons since the latest version. My plugin has its own section "SimHub" in Stream Deck.


   
ReplyQuote
Page 2 / 4
Share: