Age | Commit message (Collapse) | Author |
|
Fix errors when creating windows on Windows
|
|
|
|
notification.
|
|
Detecting the case where WM_SIZE is received during the window creation.
There's no need to call window_resize on the Vulkan context.
Also creating a WindowData entry early enough to avoid storing a
separate WindowData wrongly associated to INVALID_WINDOW_ID.
Fixes #39199
|
|
Fix MinGW build (use uninitialized `ofs` variable introduced in 39701).
|
|
|
|
changes, ensure mouse_mode is set before `cursor_set_shape` is called to restore cursor.
|
|
|
|
fixed issue where shortcut doesn't work if alt is pressed before shift
|
|
|
|
Allow Godot to kill its own PID
|
|
Unify OS.get_system_time_* and OS.get_unix_time
|
|
Linux/X11), remove latin variant function.
|
|
Fix overflow condition with QueryPerformanceCounter
|
|
Update Windows GUID to SDL uid conversion.
|
|
OS.get_unix_time return type to double
|
|
|
|
|
|
This closes #36662.
|
|
|
|
|
|
Block WM_MOUSEMOVE during Windows Ink pen handling.
|
|
The previous code for OS_Windows::get_ticks_usec() multiplied the tick count by 1000000 before dividing by ticks_per_second. The ticks is counted in a 64 bit integer and is susceptible to overflow when a machine has been running for a long period of time (days) with a high frequency timer.
This PR separates the overall calculation into one for seconds and one for the remainder, removing the possibility of overflow due to the multiplier.
|
|
|
|
|
|
|
|
|
|
using the us international layout
|
|
|
|
I couldn't find a tool that enforces it, so I went the manual route:
```
find -name "thirdparty" -prune \
-o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \
-o -name "*.glsl" > files
perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files)
misc/scripts/fix_style.sh -c
```
This adds a newline after all `}` on the first column, unless they
are followed by `#` (typically `#endif`). This leads to having lots
of places with two lines between function/class definitions, but
clang-format then fixes it as we enforce max one line of separation.
This doesn't fix potential occurrences of function definitions which
are indented (e.g. for a helper class defined in a .cpp), but it's
better than nothing. Also can't be made to run easily on CI/hooks so
we'll have to be careful with new code.
Part of #33027.
|
|
Which means that reduz' beloved style which we all became used to
will now be changed automatically to remove the first empty line.
This makes us lean closer to 1TBS (the one true brace style) instead
of hybridating it with some Allman-inspired spacing.
There's still the case of braces around single-statement blocks that
needs to be addressed (but clang-format can't help with that, but
clang-tidy may if we agree about it).
Part of #33027.
|
|
Using `clang-tidy`'s `modernize-use-default-member-init` check and
manual review of the changes, and some extra manual changes that
`clang-tidy` failed to do.
Also went manually through all of `core` to find occurrences that
`clang-tidy` couldn't handle, especially all initializations done
in a constructor without using initializer lists.
|
|
|
|
|
|
Part of #33027.
|
|
Part of #33027, also discussed in #29848.
Enforcing the use of brackets even on single line statements would be
preferred, but `clang-format` doesn't have this functionality yet.
|
|
WinTab: Make movement smoother and handle pressure/tilt changes when cursor is not moving.
|
|
correctly handle pressure/tilt change when cursor is not moving.
|
|
the keyboard menu button work
|
|
|
|
|
|
device is not pressure sensitive.
|
|
display server window position bug fix
|
|
It changed name as part of the DisplayServer and input refactoring
in #37317, with the rationale that input no longer goes through the
main loop, so the previous Input singleton now only does filtering.
But the gains in consistency are quite limited in the renaming, and
it breaks compatibility for all scripts and tutorials that access
the Input singleton via the scripting language. A temporary option
was suggested to keep the scripting singleton named `Input` even if
its type is `InputFilter`, but that adds inconsistency and breaks C#.
Fixes godotengine/godot-proposals#639.
Fixes #37319.
Fixes #37690.
|
|
Fixes #37799.
Fixes #37986.
|
|
|
|
Replace 0L with a casted nullptr
|
|
|
|
|
|
|