mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-22 21:15:57 +00:00
Bring back the game window's pointer image as pointer_image, off by default
#1092's pointer image (runtime/cursor_art.c: a gold arrowhead with a dark edge, a turquoise gem and a soft shadow, drawn at the window's DPI) was left out of dev because it changed the pointer for every player with no way to keep the system arrow. It now comes with pointer_image (input section, live, default 0): 0 leaves the window class's arrow as dev has it, 1 shows the image while the cursor is not captured. Win32 reads the setting at WM_SETCURSOR (the next mouse move after a change); SDL sets the image or its default cursor when the settings change (input_sdl_idle). The setting has its row under the mouse rows of the Controls tab, its text in the four menu languages, and totk.ini.example and docs/controls.md describe it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d8a1d14104
commit
fc985e690e
10 files changed
+182
-4
No files matched your search
@@ -19,5 +19,10 @@ int32_t ikb_wheel_take(void); // whole wheel notches turned sinc
|
||||
void ikb_cursor_update(void); // what input_cursor_allowed says may have changed
|
||||
void ikb_menu_closed(void); // the menu closed: a capture that Esc gave up comes back
|
||||
|
||||
// ---- shared by the back ends
|
||||
// cursor_art.c: the pointer's image at size x size pixels (0xAARRGGBB, straight alpha, rows from the top) and its
|
||||
// hotspot (*hot, the same in x and y). Pure.
|
||||
void cursor_art(uint32_t *argb, int size, int *hot);
|
||||
|
||||
// ---- what input.c provides the back end
|
||||
int input_cursor_allowed(void); // no text entry or menu open, the mouse camera on, input not disabled
|
||||
Reference in new issue
Block a user