def
6c0a564733
Don't print binds into F1 by default ( fixes #4789 )
2022-03-06 12:22:29 +01:00
Dennis Felsing
687f3e6160
Remove some useless conditions around free
2022-03-01 23:19:49 +01:00
Alexander Akulich
e0876960fc
CBinds: Remove unused ModifierMatchesKey()
2022-02-07 01:54:12 +03:00
Alexander Akulich
2233ca98c1
CBinds::GetModifierMask: Make the method actually returning the mask
...
... instead of the modifier enum value.
This fixes CMenusKeyBinder which now saves the bindings into the right slot.
2022-02-07 01:54:12 +03:00
Alexander Akulich
343b2543cc
Client/CBinds: Rename arguments which refers to the ModifierCombination
...
The first dimention of m_aapKeyBindings is ModifierCombination
since commit 4326d00df9
.
Rename the arguments to make it clear when the arg is a combination
(e.g. the arg value '2' refers to '1 << MODIFIER_SHIFT' instead of 'MODIFIER_CTRL')
This is needed to make the code cleaner and the bugs more obvious.
2022-02-07 01:50:14 +03:00
def
db4d9f9a47
Support saving any size binds ( fixes #4660 )
...
Since we store the bind with malloc, we also need to use malloc here to
allow any size when saving the binds in config file
2022-02-06 12:01:46 +01:00
def
94272f82c7
Add more readability checks
2022-01-22 17:45:25 +01:00
def
98df2f25eb
Fix normal binds ( fixes #4477 )
2021-12-19 23:42:19 +01:00
def
acf199835d
Support GUI/Cmd key and use it as equivalent to ctrl in default shortcuts
...
like ctrl-f / cmd-f
On macOS all these system shortcuts are done with cmd while on Windows
ctrl is used. Support both now
Added support for cmd key as modifier for binds
2021-12-18 12:23:20 +01:00
Learath2
4275dfed75
Fix composed binds. Close #3771
2021-04-17 17:37:39 +02:00
Jupeyy
af2e19c4e7
Add color for non chat(binds, ghost, client, demo)
2021-03-08 18:39:25 +01:00
def
fb8f689460
Remove deepfly binds ( fixes #3667 )
...
Anyone have a better idea?
2021-03-07 23:11:53 +01:00
Alexander Akulich
c2f276cee1
Port CConfig API from the upstream (0.7.5)
...
The old (g_Config) API is kept to not break the stuff.
See commits:
de5859b371
78076761eb
2021-01-10 17:10:19 +03:00
def
93a0dc3eee
Add more commonly used binds
...
from https://forum.ddnet.tw/viewtopic.php?t=2537
2020-12-22 12:36:01 +01:00
def
2544c758a0
Add w as default bind for dummy hammer
2020-12-08 14:42:22 +01:00
def
165857a5a8
Fix variable names manually
2020-11-02 22:40:40 +01:00
def
b1f0fd8969
Enable modernize-loop-convert clang-tidy check
...
and run clang-format afterwards
https://clang.llvm.org/extra/clang-tidy/checks/modernize-loop-convert.html
2020-11-02 22:40:24 +01:00
Дядя Женя
71079f0944
Fix overlapping of combined binds with modifiers
2020-10-31 01:23:07 +03:00
def
6507b1b802
Only ignore ctrl+shift for press, not release
2020-10-04 12:14:16 +02:00
def
1e900af5fa
Disable +xxx binds when pressing ctrl+shift
...
Seems a bit more general than hardcoding ctrl+shift+d, ctrl+shift+g, ctrl+shift+e
2020-10-03 10:03:20 +02:00
def
830352fd70
Revert "Fix ctrl+shift+d moving tee ( fixes #2930 )"
...
This reverts commit 9b0081de57
.
2020-10-03 09:57:20 +02:00
def
9b0081de57
Fix ctrl+shift+d moving tee ( fixes #2930 )
2020-09-29 22:58:26 +02:00
plsplsplslol
236015c474
print out modifiers when unbinding
2020-09-27 17:38:50 -07:00
def
3be8a592e5
Run clang-format
...
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:
$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00
bors[bot]
981d5d4e99
Merge #2675
...
2675: support multiple modifiers for binds r=def- a=plsplsplslol
Co-authored-by: plsplsplslol <alpootagpro@gmail.com>
2020-09-15 08:37:38 +00:00
def
57e2905e24
Clean up econ stuff, don't need it
2020-09-10 20:13:01 +02:00
def
0aef743d7a
Move News/Website/Wiki/Discord to bottom left
2020-09-10 20:13:01 +02:00
def
9a5ee2cdbf
Auto-bind F7 to show server console if it's free
2020-09-10 20:13:01 +02:00
def
2cdc7d0faf
Adapt 0.7 start menu
...
- Working Local Server button (needs fixing for Windows)
- Highlight buttons if server is running, new news is out and editor has
unsaved changes
2020-09-10 20:13:01 +02:00
plsplsplslol
4326d00df9
fix style and reomved repeated code
2020-09-04 13:49:14 -07:00
plsplsplslol
6782f93419
support multiple modifiers for binds
2020-08-29 17:04:36 -07:00
Learath2
15879c16f9
Fix sticky binds
2019-05-11 02:46:22 +02:00
Learath2
b41529fefd
Try to be more accomodating of old players
2019-05-11 01:38:15 +02:00
Learath
6a1ef1af62
Can't access a siblings protected members?
2019-04-28 20:34:34 +03:00
Learath
2975d6998d
Block ctrl+shift+ binds. Fixes #1490
2019-04-28 20:30:17 +03:00
Learath
1da935f4c1
Fix stuck input
2019-04-28 16:52:10 +03:00
Learath
c0c79c69c3
Fix output
2019-04-28 16:37:20 +03:00
Learath
6b815b2375
Work on compound binds
2019-04-28 16:32:49 +03:00
def
94f3d97ddf
Remove unmaintained Android code ( fixes #1575 )
2019-04-10 19:40:50 +02:00
yangfl
81a39c229b
Fix typo
2018-07-10 17:29:02 +08:00
heinrich5991
f8277267a0
Remove mem_alloc
and mem_free
, use standard C functions instead
...
Replace `mem_free` by `free`, and `mem_alloc` by `malloc` or `calloc`
(the latter one being used to allocate a zeroed array of elements,
sometimes, this makes a call to `mem_zero` superfluous).
This results in having to remove `mem_stats` which previously recorded
the number of allocations and their size that the Teeworlds code did
directly.
Remove OOM handling in `src/game/client/components/binds.cpp`.
Remove needless copying in the CSV code in
`src/game/client/components/statboard.cpp`.
2018-04-09 11:56:39 +02:00
Marcel Herd
d513af6a42
Removed default bind for home key (kill)
...
Kill is already bound to K by default, binding it on home as well doesn't really have any purpose. (?)
Furthermore, the home key is right next to page up which is bound to toggling entities.
It is very easy to accidentally hit home instead of page up, which is highly frustrating.. therefore I suggest removing this duplicate binding.
2017-07-26 20:43:26 +02:00
def
b57ffa429e
Use scancodes instead of keycodes for input ( fixes #796 , please test)
2017-07-21 19:53:49 +02:00
def
35befec54c
Clean up key binding a bit
2017-07-21 19:32:32 +02:00
heinrich5991
409bc0e019
Ensure null-termination in str_escape
...
This also fixes a couple of potential buffer overflows. The affected
code is still buggy (doesn't do the right thing on potential buffer
overflow), but at least it won't result in crashes/out of bound writes
anymore.
2017-07-08 13:06:03 +02:00
def
36d5c8d608
string toggling supports escaped strings; also some code cleanup
2017-07-08 11:03:51 +02:00
def
27074e926a
Further cleanup
2017-06-02 19:44:14 +02:00
heinrich5991
921cfb29f8
Fix use-after-free on unbind
2017-04-13 02:09:42 +02:00
heinrich5991
1b88017fc5
Fix crashbug in bind system
...
Restore old behavior around the bind's Get() function, return "" if
there is no bind. Fixes #730 .
2017-04-13 02:09:42 +02:00
Learath2
38cd5e89a5
Revert "Missed a case. Fixes #730 "
2017-04-13 01:51:00 +02:00