Stupid question time about mouse emulation

Post your question or observations here.

Moderator: DevRuss

Post Reply
dhctza
Posts: 2
Joined: Wed Jun 10, 2020 10:43 am

Stupid question time about mouse emulation

Post by dhctza »

I've been using a SpaceMouse Enterprise for a very long time. I really love the device. I like your software and I have some ideas for things I want to do with it.

OK, so the software is very very powerful but there are very few demo profiles and the instructions seem a bit thin...

I can't find any reference to driving mouse emulation from the controller. Yes I can see that one can set discrete mouse coordinates but is there a way to map say the mouse X axis to the Controller RY axis with a suitable curve. The idea is for the RY position away from 0 to control the speed at which the mouse moves in that direction. I use a ShuttlePro this way to control the speed at which a CNC axis moves. So when you move the RY to the right the mouse moves to the right at a speed relative to the position of the controller - The mouse DOES NOT change direction if the control is let go, it simply slows down to a halt. One cannot use the joystick position to directly control the position of the mouse, you can only control the speed at which the mouse moves in a particular direction.

Any thoughts...if this can be done then I will buy the software.
DevRuss
Journeyman
Posts: 224
Joined: Wed Mar 27, 2019 12:59 am

Re: Stupid question time about mouse emulation

Post by DevRuss »

This is a good question. Way back I had coded a relative mouse driver for spacemouse-to-mouse emulation, but ran into some problems. The driver was fine, but the Windows OS does some modifications (scaling) of relative mouse movement based on OS mouse sensitivity settings and monitor DPI (which is strange). Because this prevented a script from being repeatable from one machine to another, I dropped the issue. I do recall that even with the scaling working ok-ish, it was a frustrating experience to move the cursor this way.

But you bring up a good point about curves maybe being the way to control the movement. I may be revisiting this functionality this year, so no promises or anything soon.
Russ - Tetherscript Developer
dhctza
Posts: 2
Joined: Wed Jun 10, 2020 10:43 am

Re: Stupid question time about mouse emulation

Post by dhctza »

Great. I think that if you stick to using the SPmouse axis position to control the speed and direction of the mouse rather than the actual position then Windows shouldn't care. I found an Arduino sketch that does just this using a Joystick shield on a Leonado board. When I run the Leonardo along with my normal mouse Windows doesn't complain or mess up at all.
Jim
Posts: 1
Joined: Fri Nov 13, 2020 7:04 am

Re: Stupid question time about mouse emulation

Post by Jim »

I can here looking for the same kind of information. In my case, I would need to do a button press along with it though.

For the app I am looking at, they pan with the mouse and the middle mouse button pressed down (I am always scrolling the scroll wheel and changing the zoom when I do this on my mouse :oops: ), so I was hoping to use my SpaceMouse for it.
DevRuss
Journeyman
Posts: 224
Joined: Wed Mar 27, 2019 12:59 am

Re: Stupid question time about mouse emulation

Post by DevRuss »

Unfortunately In ControlMyJoystick, there isn't a way to hold that middle mouse button down while moving the spacemouse puck to simulate that scrolling.
Russ - Tetherscript Developer
Canuck
Posts: 1
Joined: Thu Apr 01, 2021 11:37 am

Re: Stupid question time about mouse emulation

Post by Canuck »

I too am looking for some may to map mouse movements to my 3D Enterprise controller.

I'm trying to map some of the mouse and keyboard inputs required for Fortnite to the controller. I've successfully managed the digital replacements - the WASD stuff but Fortnite has moving and looking. Moving left for example is A. Pressing the A key will move the character left, while continuing to face forward. Sliding the mouse to the left will turn the character on their axis, to the left. I'm not sure if I just haven't figured it out or if it's not possible to map that to a CCW rotation of the hat (for example).
DevRuss
Journeyman
Posts: 224
Joined: Wed Mar 27, 2019 12:59 am

Re: Stupid question time about mouse emulation

Post by DevRuss »

FPS like Fortnite that allow WASD for movement/strafing and mouse-based turning are not really possible in CMJ, at least not with acceptable results.

Jumping is also a problem with no real solution from the controller as the buttons are difficult to press. I have tried using z-axis digital WASD triggers, but I just can't get the accuracy while gaming.
Russ - Tetherscript Developer
Post Reply