0x2e5 consume-mouse-hwheel-delta
Opcode 0x2e5 (741), input. Investigated by OME, with high confidence (from investigation).
(out) — return the accumulated signed horizontal wheel delta and clear it.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | delta | l-int | write |
In the port
OME’s port implements it. It never waits: a wait parks the engine until input, a sleep, a transition, a dialog or a movie ends. What it can do with control besides waiting:
falls: it returns to the next instruction
OME derives these facts from the port’s handler (its tools/opcode_flow.py), and they over-approximate: a fact some path can reach is given.
By build
Whether each build’s scripts use it, as OME’s survey of the game’s scripts saw them, and how many evidence items name the build.
| Build | Game | Used by its scripts | Evidence |
|---|---|---|---|
4.24J (SYS4422) | Himegari Dungeon Meister | no | — |
4.33G (SYS4433) | Kamidori Alchemy Meister | no | — |
4.38D (SYS4438) | Soukoku no Arterial | yes | 1 |
Evidence
- native-re on SYS4438, high confidence; Arterial SYS4438 Ghidra /arterial/4.38D and the complete Arterial catalog (
vm-map/opcodes.toml opcode 0x2e5): op_0x2e5_handler@0x42e340 reads ctx+0x1c38, zeroes it and writes the value to operand 1. age_main_window_proc@0x49f9a0 handles the horizontal wheel at 0x4a02c8: with run-state 0x90100000 set it looks up set:HWheelKeyUp (a positive delta) or set:HWheelKeyDown (a negative one) and, for a value that is not negative, ors 1 << value into the triggered action mask (ctx+0xaa648); otherwise it adds the delta to ctx+0x1c38.
Details
OME’s notes on it, as the registry keeps them.
The horizontal twin of op 0x10d. The window procedure adds a WM_MOUSEHWHEEL delta (positive to the right) to the accumulator unless the run state holds an ADV wait (0x90100000); there it raises the action set:HWheelKeyUp or set:HWheelKeyDown names, which are -1 (none) unless the catalog sets HWHEELKEYUP or HWHEELKEYDOWN, and the delta is dropped. 創刻のアテリアル has 16 sites and sets neither key.