Anders Jenbo
6e1a106a38
🚚 Move header we implement into the project
5 years ago
Anders Jenbo
67a7ff98c5
🚨 Clean up compiler warnings
5 years ago
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
5 years ago
Yuri Pourre
ed1ddfdece
Exposes player id from multi_send_packet
5 years ago
Juliano Leal Goncalves
28ad9d43c5
🎨 Rename 'plr_class' enum to 'HeroClass'
...
Members were renamed as well for readability.
5 years ago
Juliano Leal Goncalves
7d95bfed39
♻️ Convert 'plr_class' to a scoped enumeration
5 years ago
Anders Jenbo
819fd40376
🎨 Consistent enum value style ( #1458 )
5 years ago
Anders Jenbo
e7ae8ddd04
🚚 Move all enums to there respective headers
5 years ago
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
5 years ago
Gleb Mazovetskiy
7ce1deb514
Migrate game_controller.cpp to SDLUniquePtr
5 years ago
Geoffroy Warin
b54df1af38
add an ini option to configure gamepad deadzone
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Juliano Leal Goncalves
9021f8daa5
♻️ Pluralize global 'item' array variable
5 years ago
danie1kr
8555b1352f
Fix broken KeySupport for Gameshell (and others) ( #1343 )
5 years ago
Anders Jenbo
a2656637e4
🎨 Format source
5 years ago
Juliano Leal Goncalves
800dbce066
♻️ Move options-related structs to new 'options.h' file
5 years ago
Yuri Pourre
df56d6a03b
Rollback joystick changes
5 years ago
Gleb Mazovetskiy
fb2e76889f
Fix a small memory leak in game_controller.cpp
5 years ago
Anders Jenbo
f2140688e7
Load and save all ini values the same way ( #1260 )
5 years ago
Gleb Mazovetskiy
7d926a4619
controller.cpp: Fix missing <cmath> include
5 years ago
Yuri Pourre
07111bb434
Add missing semicolon
5 years ago
Yuri Pourre
6ce5590f40
Update const joystick
5 years ago
Yuri Pourre
a1ab00169c
Fix indentation
5 years ago
Yuri Pourre
38f2070392
Unify controller implementations
5 years ago
Yuri Pourre
e07f5aeacf
♻️ extract Controller class ( #1236 )
5 years ago
Gleb Mazovetskiy
50663f5e5c
Fix right stick motion with the FPS limiter off
...
1. Moves right stick movement handler to run on every frame.
2. Changes hi-res accumulators to `float` to ensure they're always
incremented.
3. Avoid calling `SetCursorPos` within the same SDL tick:
this caused SDL to process all controller events before mouse events
(out-of-order).
(1) also makes right-stick-as-mouse work in `gmenu`.
5 years ago
Gleb Mazovetskiy
f7b5fbbdc7
Enable D-Pad / Left stick navigation in stores
5 years ago
Gleb Mazovetskiy
5977679e60
Handle D-Pad / Left stick in UI every frame
...
Previously this was handle as part of `game_logic`, reducing
responsiveness and making it impossible to run where `game_logic`
isn't running, e.g. stores.
5 years ago
Gleb Mazovetskiy
21565ec756
Controller: Move stick click handlers out of !game_menu
...
Fixes clicks on dialog items
5 years ago
Gleb Mazovetskiy
0f46e9c4c1
Thumb stick / DPad repeating navigation in DiabloUI, gmenu, and quest log ( #1206 )
5 years ago
Anders Jenbo
17803d5923
♻️ Apply proper types to PlayerStruct
5 years ago
Anders Jenbo
af7a0e56fa
💚 Fix SDL2 builds
5 years ago
Anders Jenbo
e280432b92
🚨 Fix all SDL1 warnings
5 years ago
Anders Jenbo
dd73ff2cf0
🚩 Add option for disabeling frindly fire ( #1104 )
5 years ago
Juliano Leal Goncalves
37466890e0
♻️ Extract 'ItemStruct.isEmpty()' function
5 years ago
Gleb Mazovetskiy
d55a1c8a7d
Pass CelOutputBuffer to game text printing ( #1095 )
...
* Pass CelOutputBuffer to game text printing
* DrawHalfTransparentRectTo: minor cleanup
5 years ago
Ivan Epifanov
d76d52779a
Add control options
5 years ago
Ivan Epifanov
85be8ed77e
[vita] Speed up. Add option to disable back touch
5 years ago
Ivan Epifanov
ab20c6fd4c
[vita] Add L2/R2 on back touch
5 years ago
MrHuu
b6be3c8812
[3DS] Map zoom toggle to button Update manual / README.md
5 years ago
qndel
ab9911064f
unify checks for single and multiplayer
5 years ago
Juliano Goncalves
20c44a08ca
Spend all stat points with shift click
5 years ago
Anders Jenbo
8c261d0966
Merge remaning clean Hellfire code paths
5 years ago
Gleb Mazovetskiy
b10b4381ef
Multiple controllers support ( #935 )
5 years ago
Gleb Mazovetskiy
693e189025
Controller: Fix L2/R2 handling
...
Broken in 01401a16c7
`ToControllerButtonEvent` must only be called once per SDL event because
of how it handled L2/R2
5 years ago
Gleb Mazovetskiy
01401a16c7
Fix various controller issues
...
* Fixes Right Stick cursor movement
* Fixes cursor flicker when moving the cursor while moving the character
* Fixes START + SELECT menu
* Makes SELECT act as Escape in the in-game menu
Fixes #930
5 years ago
qndel
a61f969d26
fix typos ( #914 )
5 years ago
Anders Jenbo
f69731b0c4
Initialize contoller values
6 years ago
Anders Jenbo
e073422ce7
Unify executable for Spawn and Retail
...
The game will now autodetect if it should run in shareware mode or full
retail based on the found mpq file. Additionally it can beforced in the
shareware mode with --spawn even if the retail data is found.
This simplifies a lot of the spagetty code and lets us better refactor,
also worth noteing is that we won't have to setup a secound set of build
tests.
6 years ago
Anders Jenbo
3ef2228d85
[switch] Leave TextInput running
...
Text mode is on by default. Calling SDL_StartTextInput() will start the
virual keyboard, but does not allow for a default value. Calling it as
well as switch_start_text_input() will start the keyboard a secound
time.
We still turn TextInput off on other platforms when it's not needed as
it can require additional resources.
6 years ago