Change mouse cursors while joystick scrolling

This patch adds mouse cursors to the joystick scrolling feature.

On Tiberian Sun, which itself had joystick scrolling, the same cursors are
used as in the original game.

As the older games did not have joystick scrolling, I've had to make a
best-effort guess as to what were suitable cursors.
  -> When scrolling in all directions is available, the default arrow
     cursor is used.
  -> When a direction is blocked, the edge-scrolling blocked direction
     cursor is used.
This commit is contained in:
Joppy Furr
2015-10-16 11:53:53 +13:00
parent fd37869a88
commit 6ded247d0c
5 changed files with 117 additions and 1 deletions

View File

@@ -207,6 +207,42 @@ Cursors:
Length: 8
X: 24
Y: 24
joystick-all:
Start: 0
X: 24
Y: 24
joystick-t-blocked:
Start: 180
X: 24
Y: 24
joystick-tr-blocked:
Start: 188
X: 24
Y: 24
joystick-r-blocked:
Start: 196
X: 24
Y: 24
joystick-br-blocked:
Start: 204
X: 24
Y: 24
joystick-b-blocked:
Start: 212
X: 24
Y: 24
joystick-bl-blocked:
Start: 220
X: 24
Y: 24
joystick-l-blocked:
Start: 228
X: 24
Y: 24
joystick-tl-blocked:
Start: 236
X: 24
Y: 24
# Cursors that need minimap variants
deploy: