1

Does anyone know of a Python module that can move the mouse while in a directX game?

I have tried Ctypes and Hammonds win32 module and they don't work in directX due to DirectInput blocking normal python modules from accessing the mouse.

Is there a workaround or a module that does this using HID emulation?

1 Answers1

0

I think that the DirectPython 11 API has what you are looking for. DirectPython 11

The core d3d11 module has a method called setCursorPos(int x, int y)

Amarok
  • 900
  • 2
  • 7
  • 15
  • How will setting the cursor in one process affect the other process? Maybe I need to spawn the first DirectX process from within my python Python script and control the mouse position that way... – user1288323 Apr 13 '12 at 19:02