Difference between revisions of "Cursor GetSettings"

From WikiPrizm
Jump to navigationJump to search
 
Line 2: Line 2:
 
| name = Cursor_GetSettings
 
| name = Cursor_GetSettings
 
| index = 0x01F5
 
| index = 0x01F5
| signature = unsigned int Cursor_GetSettings(unsigned int settingsarray[]);
+
| signature = unsigned int Cursor_GetSettings(struct cursorSettings*);
 
| header = fxcg/display.h {{NoLibfxcg}}
 
| header = fxcg/display.h {{NoLibfxcg}}
 
| synopsis = Returns cursor settings.
 
| synopsis = Returns cursor settings.
| parameters = settingsarray[], an array that must be 4 elements or 16 bytes in size.
+
| parameters = Either an array of 17 bytes or a pointer to a variable of type <tt>struct cursorSettings</tt>.
| returns = The contents of 0x8804FB0A
+
 
 +
<nowiki>
 +
struct __attribute__ ((__packed__)) cursorSettings{
 +
unsigned cursorX;
 +
unsigned cursorY;
 +
unsigned unk;
 +
unsigned cursorFlashFlag;
 +
unsigned char unkByte;
 +
};
 +
</nowiki>
 +
| returns = The same value found in cursorFlashFlag.
 
| comments =  
 
| comments =  
settingsarray[0] is the X position as set by [[locate_OS]] or [[Cursor_SetPosition]].
+
cursorX and cursorY are set by [[locate_OS]] or [[Cursor_SetPosition]].
settingsarray[1] is the Y position as set by [[locate_OS]] or [[Cursor_SetPosition]].
+
 
settingsarray[2] and settingsarray[3] are unknown.
+
cursorFlashFlag are set by [[Cursor_SetFlashMode_incompatible]], [[Cursor_SetFlashOn]] or [[Cursor_SetFlashOff]] and most likely by other functions.
 
}}
 
}}

Latest revision as of 20:18, 24 February 2015


Synopsis

Header: fxcg/display.h (Not yet in libfxcg)
Syscall index: 0x01F5
Function signature: unsigned int Cursor_GetSettings(struct cursorSettings*);

Returns cursor settings.

Parameters

Either an array of 17 bytes or a pointer to a variable of type struct cursorSettings.

struct __attribute__ ((__packed__)) cursorSettings{
	unsigned cursorX;
	unsigned cursorY;
	unsigned unk;
	unsigned cursorFlashFlag;
	unsigned char unkByte;
};

Returns

The same value found in cursorFlashFlag.

Comments

cursorX and cursorY are set by locate_OS or Cursor_SetPosition.

cursorFlashFlag are set by Cursor_SetFlashMode_incompatible, Cursor_SetFlashOn or Cursor_SetFlashOff and most likely by other functions.