Anders Jenbo
534ed2d3ff
Make shift+0-9 behave as on US keyboards
...
Fixes #532
6 years ago
Anders Jenbo
fd1d81c87f
Force initialization of controller on Switch
6 years ago
Anders Jenbo
71d8a0071c
Fix Windows build
6 years ago
Anders Jenbo
d04e0e44bb
Implement scroll wheel navigation
...
up/down/left/right = arrow keys
ctrl+up/down = zoom automap in/out
6 years ago
Anders Jenbo
c3f283429b
Fix high CPU load when game is minimized
6 years ago
Anders Jenbo
150f7e805d
Update debug code
6 years ago
Anders Jenbo
40d272241b
Implement --data-dir for setting mpq path
...
This also implements a much cleaner version of diablo_parse_flags
Fixes #219
6 years ago
Christopher M. Hobbs
436e25207a
Add preliminary command line options to main.cpp
...
- Add -h, --help and --version
- Address most of Issue #219 .
6 years ago
Anders Jenbo
e577f9bdc7
Remove more old save game format code
...
Multiplayer save games from before 1.08 where using the system name as
the password, so they would need to be converted on the original machine
by 1.08-1.09b before they can be transfered to another system.
6 years ago
Anders Jenbo
16d3fa69c6
Fix checking if sound is playing
...
Fixes #392
6 years ago
Anders Jenbo
f2133b6e2b
Fix exiting movie
...
- Replaying the intro would translate the exter and then interupt the
movie immediately.
- It was not possible to exit the application while a movie was playing.
6 years ago
Anders Jenbo
eb0f899c90
[controller] Hot spells via mod+A/B/X/Y, quest log/spellbook via mod+L2/R2
6 years ago
Anders Jenbo
50ca153f24
[controller] Fix switching focuse between inv and char
6 years ago
Anders Jenbo
7273e6a32d
Fix mouse clicks not registering on 0x* and *x0
...
Fixes #507
6 years ago
Gleb Mazovetskiy
5db59f1c72
RetroFW: IPU detection for RetroFW 2.0
...
RetroFW 2.0 changed the location of the IPU flag
from `/proc/jz/ipu_ratio` to `/proc/jz/ipu`.
6 years ago
Anders Jenbo
4610b50d1e
[controller] Handle edge cases for cursor state
6 years ago
Anders Jenbo
9d4bb70913
[controller] Only close inventory if cursor is clean
6 years ago
Anders Jenbo
046064fcfe
Fix PostMessageA an remove more unused event code
6 years ago
Anders Jenbo
e847108b78
Clean up event handeling
6 years ago
Anders Jenbo
f9d4073620
Detect when gamepads are added or removed
6 years ago
Anders Jenbo
1d500497da
Ignore clicks ouside game
...
Fixes #91
6 years ago
Anders Jenbo
a261e8ad65
Better frame delay pressision
...
- Most refresh rates aliging poorly with integer ms
- Adaptive frame limit for low spec devices
6 years ago
rsn8887
c1237b53dd
Correctly handle window size and docking/undocking on Switch
6 years ago
rsn8887
dd569bf8e0
Implement touch controls
6 years ago
Anders Jenbo
d94b245497
[controlls] Prioritize spell targets
...
Spells will now target either the apropriate highlighted actor or the
current direction.
6 years ago
Gleb Mazovetskiy
2acb87c743
SDL1: Set video mode flags and BPP via CMake
6 years ago
Gleb Mazovetskiy
24f7b080a5
Work around RG350 joystick mode kernel bug
6 years ago
Gleb Mazovetskiy
3e8f279653
Fix FPS limiting on SDL1
...
Was previously crashing with division-by-zero as refreshRate was not set
6 years ago
Anders Jenbo
0127478673
Improve frame delay for non-v-synced rendering
...
Thanks to @glebm for pointing out the issue, hopfuly this is a better
solution :)
6 years ago
Anders Jenbo
448c01a969
Make all movies escapable using ESC
...
Fixes #175
6 years ago
Anders Jenbo
bc88560b41
Disable rendering when minimized
...
This recovers the original use of gbActive
6 years ago
Anders Jenbo
d50485b119
Silence some SDL events that we do not use
6 years ago
Anders Jenbo
dffc89e41c
Limit FPS when upscaling is disabled
6 years ago
Gleb Mazovetskiy
efd9056b2b
PeekMessageA: Fix false_avail for some events
6 years ago
Anders Jenbo
54bbb4b29a
Better fake event handeling
6 years ago
Anders Jenbo
c5bca03e5a
Fix redrawing panel on unminimizing
6 years ago
Anders Jenbo
4532f009ff
Remove old anti-cheat code from save function
...
Tthis code simply logs the save time of a multiplayer game in the
register database, this was likly done as part of an anti cheat scheme
(the key was "Video Player"), but appears to have since been disabled.
Probably to allow moving save games between PC's which was supported
when better Windows 2000 support was added.
6 years ago
Anders Jenbo
0092aa66f0
[ctlr] Fix closing inventory via quickbook
6 years ago
Gleb Mazovetskiy
ddce870dda
Handle scaling for SDL1 ( #370 )
...
Only some handheld devices support auto-scaling.
On desktop and some handhelds we need to downscale manually.
Hardware auto-scaler check for jz4760 provided by @jbanes and @scooterpsu
6 years ago
Anders Jenbo
1571769478
Fix controller focuse when opening char
6 years ago
Anders Jenbo
dbc91ae036
Correct mouse interactions for game controller
6 years ago
Anders Jenbo
c86cec3c5f
Prioritize controller navigation
...
Only do one type of navigation at any one time.
Priority: Inventry, Stats, Spells, Walk.
6 years ago
Anders Jenbo
45844b71ae
Make controls more responsive
...
- Fix double events
- Fix ignored events
- Allow moving diagonal in the inventory
- Fix mouse wobbling in inventory when scalling
- Make controler actions cursor independants
- Make sure secoundery and primery key doesn't fire each others events
- Highlight both primary and secondary target
- Automatic switch between controller and keyboard+mouse
- Allow the user to change facing direction when blocked
- Make code event based instead of relying on time outs
6 years ago
Gleb Mazovetskiy
b949b77d53
Drop held item when closing inventory
...
Previously the item was just destroyed instead
6 years ago
Gleb Mazovetskiy
7c4284fc4c
Controls: Map top button to use inv item
6 years ago
Gleb Mazovetskiy
b7d53bb5f8
Controller support: README docs
6 years ago
Gleb Mazovetskiy
882e9f0fbf
Game controller: Fix spell selection
6 years ago
Gleb Mazovetskiy
113ef2e283
Fix item flickering
6 years ago
Gleb Mazovetskiy
6f3cc2a440
SDL1 fixes
6 years ago
Gleb Mazovetskiy
93203fa445
Controller: implement spellcasting
6 years ago