Anders Jenbo
8726e80199
Make controller enums C++03 compatible
6 years ago
Anders Jenbo
dc8be6c0ab
C++03 compatibility ( #736 )
...
* Use C++03 compatible constructors
* Remove conflicting definitions
6 years ago
Anders Jenbo
0da3461d35
Use explicit types instead of auto
6 years ago
Gleb Mazovetskiy
6e449b9411
Allow re-mapping keyboard keys
...
Adds a `REMAP_KEYBOARD_KEYS` CMake option.
This remapping applies wherever Game or Menu controls apply.
Uses it to map the Power button to the menu on RG350.
6 years ago
Anders Jenbo
c26fa8fa3f
Remove threading from miniwin
6 years ago
Anders Jenbo
118e3668b4
Remove unused code
6 years ago
Anders Jenbo
3ab9b7f2d3
Inline rand
6 years ago
Anders Jenbo
08aa6a860a
Move generic helpers out of miniwin
6 years ago
Anders Jenbo
67c58583d8
Implement fullscreen toggeling via alt+enter
6 years ago
Anders Jenbo
cc4d6b57d8
Remove unused miniwin IO
6 years ago
Anders Jenbo
baf2d14440
Remove unused parts of miniwin
6 years ago
Anders Jenbo
6e9987cc93
Rename dsound and it nolonger reflects DirectSound
6 years ago
Anders Jenbo
5ff5b4893c
Fix loading alignment
6 years ago
Gleb Mazovetskiy
309693b9ff
OpenDingux: GKD350h support
...
Start and Select are swapped in this version because Start + D-Pad controls backlight on the GKD350h.
There is nothing to map mouse emulation to in this version because of this but it isn't necessary to play the game.
This version looks uglier than on RG350 because it uses software scaling beacuse the IPU on the GKD350h doesn't work.
6 years ago
Gleb Mazovetskiy
fd6de736f9
Read/WriteFile: Use memcpy instead of copy
...
copy compiles to memmove but we know the ranges do not overlap here,
because memfile buffer is not exposed outside this file
6 years ago
Gleb Mazovetskiy
e1b0712f74
CloseHandle: Avoid double lookup of file
6 years ago
Gleb Mazovetskiy
77914a029f
ShowOutOfDiskError: Use constant C-string
6 years ago
Gleb Mazovetskiy
8e5e918441
Change misc_io::files from set to unordered_set
...
Order is not a concern and unordered_set is faster
6 years ago
Anders Jenbo
7f699dbad2
Remove more legacy savegame code
...
This code was only active in versions prior to 1.08
6 years ago
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