glenmurphy / fingers

Leap Motion mouse input for Digital Combat Simulator VR
19 stars 2 forks source link

Calibration Problem #3

Closed Blender-Alien closed 1 year ago

Blender-Alien commented 1 year ago

Hi,

I ran into a problem, where my movements are vertically translated correctly but my mouse is way off to the right, making it unusable.

Is there any sort of calibration I can do?

Thanks

glenmurphy commented 1 year ago

Fingers doesn't have left/right calibration - but a few questions to help debug:

Blender-Alien commented 1 year ago

Hi,

I do have 2 Monitors. I'll try disabling my second one. Dcs is perfectly center. I figured out that the app moves my Cursor around in a Box matching the Size of my dcs window, but aligned at the right bottom of my dcs monitor. Switching dcs to Windowed and placing it at the bottom right Kind of makes it work, but it's still at Bit too much to the right.

Kind regards

guilbaults commented 1 year ago

I had the same problems on a setup with 3x 1920x1080 screens with DCS in the primary/middle screen.

SetCursorPosition should receive 1920/2 to be centered in the middle and primary screen, but by using the VirtualScreen dimensions, it receive the position at (3*1920)/2 and this end up at the far right of the window and the cursor is stuck there.

Here is the patch: https://github.com/glenmurphy/fingers/pull/4

glenmurphy commented 1 year ago

Flight delays mean my brain is a bit fuzzy, but in the interest of getting you going quickly, here is a test build with guilbaults fix - let me know if it works for you:

fingers_primarymon.zip

glenmurphy commented 1 year ago

Marking as fixed as I got reports this works - thank you @guilbaults !