8086 assembly right mouse click interrupts

前端 未结 2 1089
被撕碎了的回忆
被撕碎了的回忆 2021-01-16 12:26

I am working on a project in 8086 assembly on windows machine and I need to know which mouse button has been clicked. What are the interrupts for this? or how do I go about

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-16 12:50

    On a "DOS" machine, look into Software Interrupt 0x33.
    Command AH = 0x03 returns the mouse button pressed in register CX (along with mouse coordinates and other info, in other registers).

    If available, it is of course much easier to user the Windows API for this purpose, as indicated in matja's answer.

提交回复
热议问题