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
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
Gleb Mazovetskiy
68a0c3a786
Use LF for Markdown files instead of CRLF
...
Ensures the contents can be easily copy-pasted into the terminal from
most editors on all systems.
Otherwise, on Linux, you get 2 newlines for each newline in the source
when copying from VS Code.
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
qndel
cc6a2d4523
Apply MAX_PATH_LENGTH
6 years ago
Anders Jenbo
08aa6a860a
Move generic helpers out of miniwin
6 years ago
Anders Jenbo
4c1108c1da
Prevent space from selecting during text input
6 years ago
Anders Jenbo
67c58583d8
Implement fullscreen toggeling via alt+enter
6 years ago
Gleb Mazovetskiy
5b2481a2b4
Controls: No virtual mouse when automap is active
6 years ago
Gleb Mazovetskiy
39d78228fb
Move modifier hints to viewport corners
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
cb2d58acc8
Fix clang warning
6 years ago
Anders Jenbo
57e960aeda
[controller] only move map when in dungion
...
The map status can not be changed in town but is remembered
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
fe44ea7859
[controller] Increase teleport distance to 4 steps
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
cc42e9abb1
[controller] Make accumulator time based and correct map direction
...
The emulated mouse and map move at a consistent speed independant of
frame rate.
The map can now be scrolled at variable speeds and diagonally.
Mouse is now confined to the window.
6 years ago
Anders Jenbo
7d8d10f00e
[controller] Correctly prioritice multiple talkers
...
This makes is easier to deal with Lazurus when skipping his trigger
6 years ago
Anders Jenbo
4610b50d1e
[controller] Handle edge cases for cursor state
6 years ago
Anders Jenbo
ae19742590
[controller] Don't start backtrack around obstacles
6 years ago
Anders Jenbo
9d4bb70913
[controller] Only close inventory if cursor is clean
6 years ago
Anders Jenbo
f313b66a34
[controller] Fix dropping items to all sides
6 years ago
Anders Jenbo
f0a614ea21
[controller] Do not cast targeted spells from inventory
6 years ago
Anders Jenbo
4269f71dc2
[controller] Fix player attack each other in town
...
This would render the player invisable and damage equipment
6 years ago
Anders Jenbo
e7f2d6ddd4
[controller] Fix delayed movements in multiplayer
6 years ago
Anders Jenbo
cdbde9cdcb
[controller] Target quest entrances
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
b2c3cf1135
[controller] Correctly prioritize all targets
6 years ago
Anders Jenbo
28b4fb1fd9
[controller] Correctly prioritize monsters
6 years ago
Anders Jenbo
271c6a9c41
Remove unessesery calls to abs in GetDistanceRanged
6 years ago
Anders Jenbo
e24574897c
[controller] Target portals
...
This will target portals and stairs found within 2 steps if no other
targets are found.
This is naive and doesn't prefer portals propperly.
6 years ago
Anders Jenbo
78b9f7bc72
[controller] Only ignore doors when at same coordinates
...
This made it harder to use schrines and book shelfs
6 years ago
Anders Jenbo
f5e8ae47c0
[controller] Correct movment range
...
Previously the player could wald across lava bends and sneak past
blocked paths
6 years ago
Anders Jenbo
7e2b0dd958
[controler] Prevent actions during death/menu/pause
6 years ago
Gleb Mazovetskiy
6aae591f6c
FindMelee: Minor cleanup
6 years ago
Anders Jenbo
f9d4073620
Detect when gamepads are added or removed
6 years ago
Anders Jenbo
dd0cd88eb8
[controller] Single BFS mele aim
6 years ago
Gleb Mazovetskiy
675a7b7363
Move RG350/RetroFW/Switch defs to CMake
6 years ago
Gleb Mazovetskiy
4f3b1f0fb8
[switch] Build with CMake ( #334 )
...
* Switch port: Code changes for latest devkitpro
* switch/build.sh: Fewer devkitpro packages
6 years ago
lantus360
4c96d946c6
Initial Nintendo Switch support
6 years ago
rsn8887
dd569bf8e0
Implement touch controls
6 years ago
Max Desiatov
4ff8f586d6
Fix typo in plrctrls.cpp comment
...
>cordinate
6 years ago
Anders Jenbo
279535f90b
Correct GetDistanceRanged calculation
6 years ago
Anders Jenbo
425262560b
Check best case before doing a full path search
...
This gives between 2x-10x performance improvment to mele only player
auto aim performance. Further improvments could be made by ordering
enemies by minimal distance and doing a continue in while ((next_node =
GetNextPath())) if maxDistance is exceeded.
6 years ago
Anders Jenbo
b3d81a46cc
Ignore doorway so we don't get stuck behind barrels
6 years ago
Anders Jenbo
0c75636db3
[controller] Automatically apply heal-other, resurect and disarm
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
Anders Jenbo
520c1515ed
Check if towner is in range first
...
This dramatically reduces the CPU spend finding towners
6 years ago
Gleb Mazovetskiy
a13f1580d5
Prefill player name from list
6 years ago