chiark / gitweb /
Add method for frontends to query the backend's cursor location.
authorFranklin Wei <franklin@rockbox.org>
Tue, 7 Jul 2020 02:06:30 +0000 (22:06 -0400)
committerSimon Tatham <anakin@pobox.com>
Mon, 7 Dec 2020 19:40:06 +0000 (19:40 +0000)
commit78bc9ea7f79f379634f822d5f95242900f5716b9
tree20dd3aa4e3ea4025fb72953c9d9950792ada7023
parent9aa7b7cdfb2bcd200f45941a58d6ae698882a2d4
Add method for frontends to query the backend's cursor location.

The Rockbox frontend allows games to be displayed in a "zoomed-in"
state targets with small displays. Currently we use a modal interface
-- a "viewing" mode in which the cursor keys are used to pan around
the rendered bitmap; and an "interaction" mode that actually sends
keys to the game.

This commit adds a midend_get_cursor_location() function to allow the
frontend to retrieve the backend's cursor location or other "region of
interest" -- such as the player location in Cube or Inertia.

With this information, the Rockbox frontend can now intelligently
follow the cursor around in the zoomed-in state, eliminating the need
for a modal interface.
47 files changed:
blackbox.c
bridges.c
cube.c
devel.but
dominosa.c
fifteen.c
filling.c
flip.c
flood.c
galaxies.c
guess.c
inertia.c
keen.c
lightup.c
loopy.c
magnets.c
map.c
midend.c
mines.c
net.c
netslide.c
nullgame.c
palisade.c
pattern.c
pearl.c
pegs.c
puzzles.h
range.c
rect.c
samegame.c
signpost.c
singles.c
sixteen.c
slant.c
solo.c
tents.c
towers.c
tracks.c
twiddle.c
undead.c
unequal.c
unfinished/group.c
unfinished/separate.c
unfinished/slide.c
unfinished/sokoban.c
unruly.c
untangle.c