Robert Müller
ff43b32257
Extract UpdateMouseState function
2022-06-06 22:06:56 +02:00
Robert Müller
9a17617a28
Let IInput::MouseRelative return true if mouse was moved
2022-06-06 22:06:56 +02:00
Robert Müller
92503fccec
Add comments, order functions, fix parameter names in engine input
2022-06-06 22:06:55 +02:00
Robert Müller
4b36584ca1
Organize engine-client includes
2022-05-29 21:24:43 +02:00
Dennis Felsing
687f3e6160
Remove some useless conditions around free
2022-03-01 23:19:49 +01:00
Robert Müller
89f126cf8d
Remove obsolete ignore_convention comment
2022-02-16 20:54:11 +01:00
Robert Müller
c495d4b327
change type of MouseDoubleClick from int to bool
2022-01-16 12:43:32 +01:00
oy
e3b20696cc
end double mouse click state when doing a new single click.
2022-01-16 12:43:32 +01:00
oy
bbc194ce2a
use info provided by sdl for mouse double clicks
2022-01-16 12:43:32 +01:00
Robert Müller
3557bea32d
reduce indentation of input event handling code
2022-01-16 12:43:29 +01:00
Robert Müller
6675de319b
do not copy keyboard over mouse state, refactoring
2022-01-16 12:41:31 +01:00
Robert Müller
79879591b1
refactor mouse state handling
2022-01-16 12:41:31 +01:00
Robert Müller
b4a99fecdf
Revert "Split CInput::NextFrame() from CInput::Update() ( fixes #444 )"
...
This reverts commit 72a6e20ba8
.
2022-01-16 12:41:31 +01:00
Jupeyy
69202fdc22
Fix windows macro and split the resize events
2022-01-15 16:55:32 +01:00
heinrich5991
58533cddef
Fix string functions not to truncate in the middle of a UTF-8 character
...
This makes `str_utf8_copy` obsolete.
2021-12-20 02:34:02 +01:00
def
ac094b5378
Fix text selection cursor position ( fixes #4444 )
...
after moving window to a screen with different dimensions than the
initial one
2021-12-13 19:12:37 +01:00
bors[bot]
a9bdaefde7
Merge #4251
...
4251: Add inp_translated_keys (fixyes #4241 ) r=Jupeyy a=def-
fixes #4241
## Checklist
- [x] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck ) (optional)
Co-authored-by: Dennis Felsing <dennis@felsin9.de>
2021-10-26 12:50:13 +00:00
Dennis Felsing
4894b51c94
Add inp_translated_keys (fixyes #4241 )
2021-10-26 11:40:53 +02:00
Jupeyy
c7ae79aec5
Minimal changes from mouse state change: fix editor & input
2021-10-23 14:24:52 +02:00
Jupeyy
0d17665137
Revert "Add new mouse state"
...
This reverts commit e4cb348db2
.
2021-10-23 13:48:21 +02:00
Jupeyy
a1ef18e059
Revert "Remove the mouse mode changes that aren't needed"
...
This reverts commit 1a917b0aae
.
2021-10-23 13:48:04 +02:00
Jupeyy
5dbc6416d1
Revert "Still clear pending mouse motion"
...
This reverts commit 2c565a33ab
.
2021-10-23 13:47:51 +02:00
bors[bot]
4601f7500e
Merge #4232
...
4232: Still clear pending mouse motion r=def- a=Jupeyy
Same as #3932 ... again :/
## Checklist
- [x] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck ) (optional)
Co-authored-by: Jupeyy <jupjopjap@gmail.com>
2021-10-19 21:30:32 +00:00
Jupeyy
2c565a33ab
Still clear pending mouse motion
2021-10-19 23:18:44 +02:00
Jupeyy
1a917b0aae
Remove the mouse mode changes that aren't needed
2021-10-16 23:56:40 +02:00
Jupeyy
e4cb348db2
Add new mouse state
2021-10-07 16:48:25 +02:00
BloodWod-513
4317c43c6b
Console copy string
2021-09-15 19:47:01 +02:00
Jupeyy
7234c04c15
Make fullscreen changes better (especially under windows)
2021-08-24 18:23:31 +02:00
Jupeyy
b216b6744a
Add Android build scripts
2021-08-24 12:18:20 +02:00
Jupeyy
ac56075b1b
Upgrade resolution list
2021-08-22 15:00:12 +02:00
Jupeyy
734ed86bd9
Reset relative mouse motion on toggle
2021-06-25 14:52:26 +02:00
Jupeyy
8eac8b0afc
Only remove windowed fullscreen and restore mouse focus loss behavior
2021-04-02 22:45:49 +02:00
Jupeyy
f0160b5313
Differenciate better between window modes
2021-03-30 10:07:41 +02:00
def
e985632fae
OSX -> macOS
...
Changing the filenames of the releases will be a bit more annoying, so
not sure we want to do that
2021-02-12 13:41:41 +01:00
Дядя Женя
095727e8c3
Fixed mouse jumping
2020-12-18 16:50:45 +03:00
Jupeyy
cafd1a4e8f
Allow windows resizing
2020-12-13 00:52:57 +01:00
TsFreddie
cc8fe178b5
Update DoEditBox logic to be the same as chat
2020-10-26 01:44:10 +08:00
TsFreddie
f7ac41adeb
Fix IME stuck when 0-len TEXTEDITING event is missing.
2020-10-25 23:48:12 +08:00
def
5c1b8cd221
Fix clang-analyzer-deadcode.DeadStores
...
/media/ddnet/src/game/client/components/statboard.cpp:288:3: warning: Value stored to 'tw' is never read [clang-analyzer-deadcode.DeadStores]
2020-10-14 15:45:47 +02:00
TsFreddie
d4da82f977
clang-format
2020-09-22 17:02:03 +01:00
TsFreddie
387bc53030
ime window position & ime input handling
2020-09-22 17:01:13 +01:00
TsFreddie
badc49cac7
Revert "Revert & use "str_utf8_truncate" instead"
...
This reverts commit b045a3d6ee
.
2020-09-06 20:54:57 +01:00
TsFreddie
b045a3d6ee
Revert & use "str_utf8_truncate" instead
2020-09-05 00:51:39 +01:00
TsFreddie
92d08d07de
add str_utf8_copy
2020-09-04 17:34:27 +01:00
def
47e6c7cce2
Only forbid resizing when videorecorder is recording
2020-06-19 08:19:40 +02:00
def
600a3b0bad
Fix preprocessor
2020-01-03 22:07:02 +01:00
def
54ae929b2f
Disallow resizing windows when videorecorder is compiled in
2020-01-03 21:40:41 +01:00
def
94f3d97ddf
Remove unmaintained Android code ( fixes #1575 )
2019-04-10 19:40:50 +02:00
def
f05c56d6ce
Fix cl_dyncam_mousesens
...
should only have an effect ingame, not in menus or editor
2019-01-11 09:40:04 +01:00
heinrich5991
6247aa0c7f
Enable -Wextra
and -Wformat=2
...
Also annotate `dbg_msg`, `str_format` and `str_timestamp_ex` so that the
compiler can determine whether the format strings are correct.
Fix the compiler warnings generated by these extra warnings -- some of
them were security issues.
2017-07-27 20:38:17 +02:00