Xadhoom
2134b10d64
more unsigned shifts with cursor handling
6 years ago
Xadhoom
19992af2ad
avoids implementation-defined behaviour
6 years ago
qndel
3920bf2678
apply gamma change to HUD on 640x480
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
Anders Jenbo
e590e6995a
Implement recharge and fix cursor for repair
6 years ago
Gleb Mazovetskiy
113ef2e283
Fix item flickering
6 years ago
Gleb Mazovetskiy
a2e821d241
Game controller support
...
Initial game controller support.
Actions are based on the Switch branch but the controller code itself is
implemented differently, allowing for easy remapping and minimizing
changes to the Source/ directory.
Many subtle and not so subtle controller bugs have been fixed
in this implementation, including:
1. Smoother & more responsive movement with the joysticks.
2. Consistent controls for all the menus in the game (stores, quest log,
etc).
3. Cursor appearance / disappearance at appropriate times.
Low-level controls are abstracted and 3 SDL interfaces are supported:
game controller, joystick, and keyboard. See SourceX/controls/ for more
details on this.
Wishlist for the future:
1. Primary button and use button should attack continously.
This is hard as it requires checking the cooldowns / attack speed.
2. Quick spell menu navigation is very buggy. It is also buggy in the
switch branch. I haven't had a change to investigate.
6 years ago
Gleb Mazovetskiy
a4a302c4ed
Fix OOB in lighting.cpp
6 years ago
Anders Jenbo
3638381b48
SetCursor CURSOR_NONE
6 years ago
galaxyhaxz
3bd28cc0c1
Fix function order [spells+pack.cpp]
6 years ago
Anders Jenbo
95bec150c2
Fix load path
...
Fixes #412
6 years ago
Mathieu Maret
bfe4759745
Loading screen ( #1836 )
6 years ago
Anders Jenbo
a91f4e76ba
Fix bad merge
6 years ago
Mathieu Maret
66fe4ab77b
Use PANEL_X instead of SCREENX+PANEL_LEFT
...
Co-Authored-By: Anders Jenbo <anders@jenbo.dk>
6 years ago
Mathieu Maret
fdf4384640
Center Loading screen
6 years ago
galaxyhaxz
67fedd9e99
Fix unknown struct field and drawpanflag
6 years ago
Mathieu Maret
982b1148d8
monster: use some enums
6 years ago
Mathieu Maret
e79b1afe84
Fix S_TalkEnter
...
To mirror commit 1c9801986c559417b7889708b2ce9cc2e27d9ba9: "Fix
S_StartTalk"
6 years ago
Anders Jenbo
c34d3e7177
Update bugfix note
6 years ago
Gleb Mazovetskiy
b18fe49d0a
Fix OOB in DrawSpell ( #405 )
...
The OOB here was in `_pSplLvl[spl]`.
The value of SPL_INVALID is is `-1`.
The fix is to not access the array when `spl == SPL_INVALID`.
6 years ago
Anders Jenbo
e396aafa3b
Add bugfix note
6 years ago
Gleb Mazovetskiy
329c6b89bc
Source/drlg_l[23].cpp: Use std::min/max instead of ternaries
...
Follow-up to #169
Also fixes a typo in drlg_l3.cpp
6 years ago
Gleb Mazovetskiy
be0f092ff7
Fix OOB in M_CheckEFlag
6 years ago
Xadhoom
a1b7b8522a
Bugfixes
6 years ago
Gleb Mazovetskiy
1b24dac942
Add BUGFIX comment in DrawSpell
6 years ago
Gleb Mazovetskiy
9ba62e26bc
Fix OOB in DRLG_L5TransFix ( #399 )
6 years ago
Gleb Mazovetskiy
9a58d42108
Fix OOB in dungeon lvl2 Dark Passage generation ( #400 )
...
Dark Passage entrance index is 206 but the BSTYPES and L5BTYPES array
only contained 206 elements.
6 years ago
Gleb Mazovetskiy
5fdac5cfd9
Fix multiple OOB in L5tileFix
...
Refs #396
6 years ago
Gleb Mazovetskiy
f2afd88633
Fix OOBs in DRLG_L5Subs ( #402 )
...
Refs #396
6 years ago
Gleb Mazovetskiy
25011ef55b
Fix OOB in dungeon lvl2 Dark Passage generation
...
Dark Passage entrance index is 206 but the BSTYPES and L5BTYPES array only contain 206 elements.
6 years ago
Gleb Mazovetskiy
48c399c453
Fix OOBs in DRLG_L5Subs
6 years ago
Gleb Mazovetskiy
08fd0dce60
Fix multiple OOB in L5tileFix
...
Refs https://github.com/diasurgical/devilutionX/pull/401
6 years ago
Gleb Mazovetskiy
63a0c70652
DRLG_L5TransFix: Add BUGFIX comments
6 years ago
Anders Jenbo
195ac2a4a7
Apply music enums
6 years ago
Anders Jenbo
2b06fb1a6d
Update mouse movment before rendering
...
Fixes #379
6 years ago
Anders Jenbo
f6c38e2912
Display chac as long as there is screen space for it
6 years ago
Anders Jenbo
5a722eee82
Allows left clicking outside panels
6 years ago
Anders Jenbo
048429b4cd
Apply more constants
6 years ago
Anders Jenbo
8976e4fd39
Check if panels conver the screen before affecting the viewport
6 years ago
Anders Jenbo
71adfe509e
Document more attributes
6 years ago
Anders Jenbo
1596e661d2
Do not move mouse when panels do not cover viewport
6 years ago
Anders Jenbo
dc157d82b2
Align unique item info box
6 years ago
Anders Jenbo
9146e3ea35
Enable FPS meter for releases
6 years ago
falquinho
c65060ccad
Some comments on control functions.
6 years ago
Anders Jenbo
92ab05ea13
Decompose more magic numbers
6 years ago
Anders Jenbo
b528d4362d
Fix rendering on Big Endian systems
7 years ago
Mathieu Maret
a12a7998d1
simplify world_draw_black_tile
7 years ago
Mathieu Maret
b2ed866c7a
Code simplification using memset/memcpy
7 years ago