Difference between revisions of "FF8/Field/Script/Opcodes/06D KEYSCAN"

From Final Fantasy Inside
< FF8‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Shard
(Description)
my_wiki>Albeoris
(Created page with "* Opcode: '''0x06D''' * Short name: '''KEYSCAN''' * Long name: Scan for pressed key ==== Argument ==== none ==== Stack ==== : ''Key flags'' : '''KEYSCAN''' ==== Key F...")
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====
+
: ''Key flags''
:16: Cancel
+
: '''KEYSCAN'''
:32: Menu
 
:64: OK/Accept
 
:128: Card game button (I think it's called "switch")
 
  
==== Description ====
+
==== 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.
 
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.

Revision as of 15:20, 24 March 2018

  • 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.