Skip to content

Adult titles

The games this site covers are adult titles. Their data, pictures and text include sexual content.

Continue only if you are an adult where you live.

0x10e get-key-state

Opcode 0x10e (270), input. Investigated by OME, with high confidence (from investigation).

(out)(scan_code) — GetAsyncKeyState of the virtual key of a DirectInput scan code, as a signed 16-bit value: negative while the key is down.

Operands

#RoleTypes seenAccess
1statel-intwrite
2scan code (an index into scan code, 256 entries, not bounds-checked)immread

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.

BuildGameUsed by its scriptsEvidence
4.24J (SYS4422)Himegari Dungeon Meisterno—
4.33G (SYS4433)Kamidori Alchemy Meisterno—
4.38D (SYS4438)Soukoku no Arterialyes1

Evidence

  • native-re on SYS4438, high confidence; Arterial SYS4438 Ghidra /arterial/4.38D and the complete Arterial catalog (vm-map/opcodes.toml opcode 0x10e): op_0x10e_handler@0x42c1e0 passes operand 2 to 0x4710c0, which returns 0 when the input manager's +0x1820 is zero and else GetAsyncKeyState(table[+0x1420 + index * 4]) sign-extended from 16 bits, and writes the result to operand 1. The table is the DIK-to-VK table op 0xfd reads at the same address.

Details

OME’s notes on it, as the registry keeps them.

The worker reads its DIK-to-VK table, 256 entries, at the operand as it comes, and returns 0 while the input manager is inactive. The result has bit 15 while the key is down and bit 0 when it was pressed since the last call for that key, which the call clears; the port keeps that bit for the game's own calls (InputBindings.KeyState), where Windows keeps it for every process. 創刻のアテリアル has 3 sites, all in PH03_PLR_ACTION, and each tests the result with and 0xff00, so bit 0 does not reach them.