Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
staphen
40cc894630
Force VIRTUAL_GAMEPAD=OFF when USE_SDL1=ON
4 years ago
staphen
ccd8f114f8
[Virtual Gamepad] Add menu panel to top-right corner
4 years ago
staphen
9ada44ae6b
[Virtual Gamepad] Closing inventory drops item
4 years ago
staphen
b8950877c5
Add buttons for using potions from belt
5 years ago
staphen
3df85b70ce
Add virtual gamepad event handlers and implement touch controls
5 years ago
Anders Jenbo
a19e7b2a3b
Remove some more use of miniwin
5 years ago
Anders Jenbo
9ebdb6db69
General clean up
5 years ago
Anders Jenbo
9b8bf92575
Rename quest globals
5 years ago
Anders Jenbo
d8729e6433
Clang-tidy: bugprone-argument-comment
5 years ago
staphen
d89221b15e
Close Cathedral Map when B button is pressed on the controller.
5 years ago
Anders Jenbo
cc164985a3
🎨 Correct type checks in src sub-folder
5 years ago
Trihedraf
cfd63a9ad0
Fix SDL1 Builds
5 years ago
Anders Jenbo
2969b80163
🎨 Run readability-identifier-naming on all src sub-folders
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
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
Anders Jenbo
f2140688e7
Load and save all ini values the same way ( #1260 )
5 years ago
Yuri Pourre
38f2070392
Unify controller implementations
5 years ago
Gleb Mazovetskiy
f7b5fbbdc7
Enable D-Pad / Left stick navigation in 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
Ivan Epifanov
d76d52779a
Add control options
5 years ago
MrHuu
b6be3c8812
[3DS] Map zoom toggle to button Update manual / README.md
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
Gleb Mazovetskiy
611f7f109e
Map Start + L1/R1 to char/inventory ( #655 )
...
It's common to access char and inventory and this is easier to press than Start + ←/→ on devices that have shoulder buttons
6 years ago
Anders Jenbo
8726e80199
Make controller enums C++03 compatible
6 years ago
Anders Jenbo
69ad34f58f
Consistently use NULL instead of nullptr
...
While nullptr does have extra checking, most of the code uses NULL and
nullptr makes it harder to port the code to some targets like the
original XBox
6 years ago
Gleb Mazovetskiy
2c5cc1365c
Map Start + L1/R1 to char/inventory ( #655 )
...
It's common to access char and inventory and this is easier to press than Start + ←/→ on devices that have shoulder buttons
6 years ago
Gleb Mazovetskiy
d1f41e4676
Controls: B button closes currently active panel
...
This was requested several times and I myself keep trying to use B to
close panels.
6 years ago
Gleb Mazovetskiy
5b2481a2b4
Controls: No virtual mouse when automap is active
6 years ago
Gleb Mazovetskiy
ce5c1007a2
Controller improvements: START modifier and hints
...
1. Makes START a modifier key.
2. Main modifier actions are now displayed as hints while the modifier is pressed.
3. Mouse simulation now available on all controllers:
SELECT + D-Pad to move mouse
SELECT + Left/Right should button to click
START + | Action
---------- | ------
SELECT | Menu
UP | Menu
DOWN | Map
LEFT | Character info
RIGHT | Inventory
B (Bottom) | Spell book
Y (Left) | Quest log
This makes all actions available on controllers without sticks and ZL/ZR.
6 years ago
Anders Jenbo
b6ce6f043f
Resolve warnings in switch case
6 years ago
Anders Jenbo
ef37f3de02
[controller] Map mouse right button
...
- Fix retrofw build error
- Map right and left mouse click for retrofw
- Fix opening inventory/char sheet on retrofw
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
0b175c22ee
[controller] Move healing/mana to L1/R1
...
This is more like the original PSX port, and maps better to devices with
only one set of triggers.
6 years ago
Anders Jenbo
7e2b0dd958
[controler] Prevent actions during death/menu/pause
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
1bc19ec1e9
Update KbCtrl mappings
...
New mappings for mouse movement.
Select is now the modifier key.
6 years ago
Anders Jenbo
448c01a969
Make all movies escapable using ESC
...
Fixes #175
6 years ago
Anders Jenbo
cb7b767570
Swap map and quest log
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
7c4284fc4c
Controls: Map top button to use inv item
6 years ago