Multiple mouse/mice/cursor?

前端 未结 3 1161
孤城傲影
孤城傲影 2021-01-22 11:11

How can I show another cursor for multiple mice? I have two TMemos, two keyboards which can type into their respective TMemo, 2 mice and I need 2 cursors those.

If hypot

3条回答
  •  遇见更好的自我
    2021-01-22 11:55

    Windows doesn't support multiple mouse or keyboards. Since each process have only 1 input queue, Windows treats all similar input devices as the same single device. This can't be changed. End of story. Period.

    But even if you can't do this on system wide scale - you still can do this in one particular application. You need to write a special driver and install it for the second mouse only. This driver should not pass mouse movements to usual consumer (input queue), but rather redirect input directly to your application.

    You can use a already written drivers - for example, this one or the one, that you've already mentioned.

提交回复
热议问题