Menu

How do i emulate mouse and how do i lock mouse?

Zyka
2020-09-14
2020-09-16
  • Zyka

    Zyka - 2020-09-14

    Hi,
    First of all thanks for this awesome software. With this i was able to map xbox to my keyboard and its working perfectly. The keyboard lock works and the mapping works.

    But unfortunately, i cant seem to get the mouse working properly.

    These is what i have tried :
    I tried with LLHOOK and direct input.
    I changed update intervel to 10ms
    Tried with device lock and device lock + entire device lock

    I am trying to use mouse to map ' Right Stick [x] + & - and Right stick [y] + & - ' and
    Dpad Up as 'Mouse Axis [Wheel] +' and Dpad Down as 'Mouse Axis [Wheel] -'

    But this doesnt seem to work. Everything related to keyboard works perfectly but mouse simply doesnt work everytime i lock the mouse the try to move it, any movement done by the mouse is taken as a full movement to bottom right corner. (axis2 and axis3 reporting 1.000 movement).

    I found that this happens because when i press 'Mouse Lock' , the curser gets locked on a random spot on the screen and the program picks up movement from that point of the screen. Is there anyway to make sure that the mouse gets locked at the CENTER of the screen?

    Is there anything i might have missed here? Could someone help me out?

    Thanks.

     

    Last edit: Zyka 2020-09-14
  • VIRTUAL

    VIRTUAL - 2020-09-15

    Do you need a lock option? If no, then try to use RawInput without lock.
    Can you provide me your profile-file (vcd)? Or a screenshot?

     
  • Zyka

    Zyka - 2020-09-15

    These are my keys and once mouse is locked, any movement will make the input assume it as a full on left side bottom movement. Also how do i add diagonal movement to mouse???

    Without mouse locked, any mouse movement will be detected as mouse, rather than controller movement :(

    Even if mouse is locked, if i move mouse diagonally, game detects it as mouse movement instead of controller. So is there a way to add diagonal movement? (X and Y to mouse diagonal movement?)

     

    Last edit: Zyka 2020-09-15
  • VIRTUAL

    VIRTUAL - 2020-09-16

    Probably double input: mouse + vXbox.
    When Lock is "ON", mouse pointer locked in last position - try Lock "ON" when cursor in center screen.
    LLHook Lock don't hide mouse movement perfectly (technically is trick). You can try Hook (dll injector), RawInput lock, but I don't recommend this: very risky if game have anti-cheat system, and unstable in action.
    Can disable all mouse controls in game?

    You can try this (https://sourceforge.net/p/vjoy-controller/discussion/general/thread/486ba7d879/) to hide mouse / keyboard.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.