hrvach / deskhop

Fast Desktop Switching Device
GNU General Public License v3.0
6.44k stars 188 forks source link

Support for gaming? #49

Closed STRIKERnz closed 3 months ago

STRIKERnz commented 9 months ago

Will this ever work with games? I know this is not the main demographic for this. I wanted to use deskhop with my main PC and a second PC that I use for media/study. I've been using Synergy but found deskhop and would love to use it over software. However after putting one together and attempting to play any games I found you can't move your mouse more then a few degrees, making playing anything with Keyboard and mouse not really practical.

hrvach commented 9 months ago

It would work with something like implementing a full mouse passthrough mode. I'm trying to look into improving support for keyboards/mice currently and perhaps multiple screens on win/mac currently, let me add this to the planned features list.

ozwin2 commented 8 months ago

hey, sorry this is likely the wrong channel for this (dont know how to navigate to the planned features list), but was this something that was being looked at? kinda confused about "can't move your mouse more than a few degrees", what exactly does that mean? if gaming through the deskhop would it work fine by locking (Control+L) to the gaming system, so then the mouse wont jump across to the other system, or is this more that when playing Fullscreen your mouse disappears so that you mouse doesn't ever get to the edge to move across to the other system from the gaming system, unless the game is paused when the mouse pointer becomes visible again and so the mouse can move from the gaming system to the other system?

STRIKERnz commented 8 months ago

So, both full screen and non full screen games were doing this. Even with the mouse locked to the gaming system, It would only allow a small range of movement within that system's 1920x1080 area/box. It wasn't moving between screens but rather just a small area of range of movement. I'm assuming because most games hide the mouse cursor but still have free rain to move the cursor more then to the edges of a 1920x1080 box. You end up with a very narrow area to move around with.

Opps, I couldn't comment without commenting and closing.

ozwin2 commented 8 months ago

ahh i understand, so i presume this is still the case? i guess in simple terms an if statement of: if full screen do not move cursor between systems else allow movement. obviously don't know how hard that would be to implement in code.

STRIKERnz commented 8 months ago

Here is an example video you can only move the mouse within a box.

ozwin2 commented 8 months ago

Oh man, that's unusable like that haha!

hrvach commented 8 months ago

I don't know how games usually do input, but providing absolute mode data is probably not making them happy :). There is a tiny bit of hope though - I managed to get macos workaround for multiple monitors to work and that implies having another relative mouse device. This will also be used in windows for the same reason and could also be used to run a "gaming mode" of a sort. That would mimic the way your existing mouse works and I'm guessing games would be OK with that.

Will try to implement a gaming mode, let's call it a stretch goal :)

Earthling-Z3R0 commented 5 months ago

Gaming works for me on Linux when I use wine 8.10. Any other version I tried has the same issue the OP mentioned.

Earthling-Z3R0 commented 4 months ago

Updating my own statement: After having tried a couple more games I need to say that it doesn't work so well. My main game is EverQuest and that works just fine using wine 8.10 but other games require a directly plugged in mouse. I hope the gaming mode stretch goal will become a reality at one point :)

MakeNModify commented 4 months ago

I did not test it but would imagine the main problem is for First (and Third) Person games, where you can "rotate" into one direction by constantly moving your mouse into one direction. That works for relative movement but for absolute movements you'll hit a wall. I would propose to make a hotkey to lock the deskhop to the current output and switch to relative movement and switch back on another push. (Am currently waiting for parts and look into it when I've build it)

hrvach commented 4 months ago

I've been working on deskhop-gaming-test.zip because apparently a lot of people would find this feature useful. This is just a test release, not a daily driver but I'd really appreciate some gamer feedback from you folks. (@STRIKERnz @Earthling-Z3R0 @MakeNModify and others).

Left shift + right shift + G will lock the mouse to the current output and switch it to standard relative mouse. Pressing this again will revert to the "normal" deskhop mode.

Please be so kind to focus on scenario a) where machine you're gaming on is connected to the same PICO board where the mouse plugs in and scenario b) machine you're gaming on is connected to the pico where the keyboard plugs in.

Would this be acceptable for gaming? Thanks!

superbreadi commented 3 months ago

Hi it works perfectly for me! Also my other issue with widescreensupport https://github.com/hrvach/deskhop/issues/131#issue-2448824151 is also fixed in gaming mode

STRIKERnz commented 3 months ago

I've been working on deskhop-gaming-test.zip because apparently a lot of people would find this feature useful. This is just a test release, not a daily driver but I'd really appreciate some gamer feedback from you folks. (@STRIKERnz @Earthling-Z3R0 @MakeNModify and others).

Left shift + right shift + G will lock the mouse to the current output and switch it to standard relative mouse. Pressing this again will revert to the "normal" deskhop mode.

Please be so kind to focus on scenario a) where machine you're gaming on is connected to the same PICO board where the mouse plugs in and scenario b) machine you're gaming on is connected to the pico where the keyboard plugs in.

Would this be acceptable for gaming? Thanks!

Works fine in both scenarios for me and I would use it like that. Is there a way to increase the mouse sensitivity? I just notice while using Deskhop that the sensitivity is probably half of my normal sens.

nathank07 commented 3 months ago

I've been working on deskhop-gaming-test.zip because apparently a lot of people would find this feature useful. This is just a test release, not a daily driver but I'd really appreciate some gamer feedback from you folks. (@STRIKERnz @Earthling-Z3R0 @MakeNModify and others).

Left shift + right shift + G will lock the mouse to the current output and switch it to standard relative mouse. Pressing this again will revert to the "normal" deskhop mode.

Please be so kind to focus on scenario a) where machine you're gaming on is connected to the same PICO board where the mouse plugs in and scenario b) machine you're gaming on is connected to the pico where the keyboard plugs in.

Would this be acceptable for gaming? Thanks!

Works for me on MacOS/Linux and fixes my issues with X. Would love to see this added as a feature in the future!

hrvach commented 3 months ago

It will definitely be added as a feature, probably next release (as soon as I find a few free hours).

hrvach commented 3 months ago

This was released in 0.63, closing as complete.