EventSetMouseMode
function · core · orchestration
- Address
0x420540· 181 bytes, up to0x4205f4- Signature
void __fastcall (uint32_t mode, uint32_t buttons)- Meaning
- Sets the mouse mode for a set of held buttons through 0x4241a0; error 0x57 for a mode of 2 or more
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- core/input#buttons-and-capture
Finding: Buttons and capture in core: window input
The window procedure gives the buttons the bits left 1, middle 2, right 4, X1 8 and X2 0x10. It
captures the mouse when the first button goes down and releases it when the last comes up. On the
event side, EventSetMouseMode (0x420540) switches the mouse mode for a set of buttons, and only
while all of them are held; that set is kept, and when a button-up leaves any of it released, the
mode returns to absolute.
The derivation is in the doc.
Callers 6
- CheckMouseModeButtons core
- ResetMouseModeThunk core
- CGlueMgr::NetDisconnectHandler glue
- CGWorldFrame::~CGWorldFrame ui
- CameraLeaveFreelook uicamera
- CameraEnterFreelook uicamera
Callees 5
- PropGet base
- IEvtInputSetMouseMode core
- SErrSetLastError storm
- CSRWLock::Enter storm
- CSRWLock::Leave storm
Calls and jumps by a bare address, from tables/calls.tsv.