Difference between revisions of "FF8/Field/Script/Opcodes/06D KEYSCAN"
Jump to navigation
Jump to search
Qhimm>Shard (→Key Flags: Derp, that's not a power of 2) |
ffrtt>BukTop m (6 revisions imported) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
* Long name: Scan for pressed key | * Long name: Scan for pressed key | ||
==== Argument ==== | ==== Argument ==== | ||
none | none | ||
==== Stack ==== | ==== Stack ==== | ||
: ''Key flags'' | |||
: '''KEYSCAN''' | |||
==== | ==== Key Flags ==== | ||
Writes 1 to temporary variable 0 (access with PSHI_L 0) if the user is pressing any of the indicated keys. 0 otherwise. | : 16: Cancel | ||
: 32: Menu | |||
: 64: OK/Accept | |||
: 128: Card game button (I think it's called "switch") | |||
==== Description ==== | |||
Writes 1 to temporary variable 0 (access with PSHI_L 0) if the user is pressing any of the indicated keys. 0 otherwise. The script does not pause while doing this, so you have to run it in a touch or push script, or inside a looping subroutine. |
Latest revision as of 04:24, 23 May 2019
- Opcode: 0x06D
- Short name: KEYSCAN
- Long name: Scan for pressed key
Argument
none
Stack
- Key flags
- KEYSCAN
Key Flags
- 16: Cancel
- 32: Menu
- 64: OK/Accept
- 128: Card game button (I think it's called "switch")
Description
Writes 1 to temporary variable 0 (access with PSHI_L 0) if the user is pressing any of the indicated keys. 0 otherwise. The script does not pause while doing this, so you have to run it in a touch or push script, or inside a looping subroutine.