34 Commits

Author SHA1 Message Date
lupoDharkael
a5c4985328 Replace NULL with nullptr 2020-04-02 13:38:00 +02:00
Juan Linietsky
cfd5f8f93e Refactored input, goes all via windows now.
Also renamed Input to InputFilter because all it does is filter events.
2020-03-26 15:49:39 +01:00
bruvzg
372cff5481 Rename scancode to keycode.
Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap.
Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
2020-02-25 12:30:33 +02:00
Rémi Verschelde
2e98068c7d Update copyright statements to 2020
Happy new year to the wonderful Godot community!

We're starting a new decade with a well-established, non-profit, free
and open source game engine, and tons of further improvements in the
pipeline from hundreds of contributors.

Godot will keep getting better, and we're looking forward to all the
games that the community will keep developing and releasing with it.
2020-01-01 11:16:22 +01:00
Rémi Verschelde
390903b16d Update copyright statements to 2019
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
Aaron Franke
0cbdd5a965 Remove redundant "== true" code
If it can be compared to a boolean, it can be evaluated as one in-place.
2018-10-06 16:12:36 -04:00
Rémi Verschelde
4ba037a9c2 Make core/ includes absolute, remove subfolders from include path
This allows more consistency in the manner we include core headers,
where previously there would be a mix of absolute, relative and
include path-dependent includes.
2018-09-12 09:52:22 +02:00
Adrien Destugues
6624b186ba Rebase patches for fixing haiku build. 2018-08-11 17:20:51 +02:00
Rémi Verschelde
63cbf6d2f0 Add missing copyright headers and fix formatting
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Rémi Verschelde
55e60cf44a Update copyright statements to 2018
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Rémi Verschelde
98ed70d40e Style: Apply new clang-format 5.0 style to all files 2017-12-07 08:02:00 +01:00
letheed
f0b665f387 Rename pos to position in user facing methods and variables
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:

* pos -> position
* rot -> rotation
* loc -> location

C++ variables are left as is.
2017-09-20 13:11:10 +02:00
Rémi Verschelde
79fdaf5cbd Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
Juan Linietsky
7c32f3fd7d Removal of InputEvent as built-in Variant type..
this might cause bugs I haven't found yet..
2017-05-20 17:05:38 -03:00
Sergey Pusnei
fe4fba9e7f Rename [gs]et_pos to [gs]et_position for Controls
Control set_pos -> set_position
Control set_global_pos -> set_global_position
[gs]et_mouse_pos -> [gs]et_mouse_position
[gs]et_global_mouse_pos -> [gs]et_global_mouse_position
fixes #8005
2017-04-10 08:27:34 +02:00
Rémi Verschelde
65f26a9703 Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
Andreas Haas
b3a496acb0 Input: Remove usage of platform dependent event IDs.
The ID property for InputEvents is set by `SceneTree` when sending the event down the tree.
So there's no need for the platform specific code to set this value when it will later be overriden anyway...
2017-03-26 15:59:32 +02:00
Rémi Verschelde
78354332c6 Fix typos in source code using codespell
From https://github.com/lucasdemarchi/codespell
2017-03-24 21:45:31 +01:00
Rémi Verschelde
9b443edfd9 A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?

I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon

A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format

A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
2017-03-05 16:44:50 +01:00
Rémi Verschelde
15c3dfeff2 Style: Fix whole-line commented code
They do not play well with clang-format which aligns the `//` part
with the rest of the code block, thus producing badly indented commented code.
2017-01-14 14:52:23 +01:00
Juan Linietsky
6afb936cb6 rename Input.get_mouse_speed() to Input.get_last_mouse_speed() 2017-01-13 19:24:28 -03:00
Rémi Verschelde
2848f31173 Welcome in 2017, dear changelog reader!
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer
with state-of-the-art rendering techniques tuned to work as low as middle
end handheld devices - without compromising with the possibilities given
for higher end desktop games of course. Great times ahead for the Godot
community and the gamers that will play our games!
2017-01-01 22:03:33 +01:00
Rémi Verschelde
4e83a47856 Add missing license headers in our source files (#5255)
Also removes a couple wrong Godot headers from third-party source files.
2016-06-18 14:46:12 +02:00
Emmanuel Leblond
77c36b249d Remove unnecessary null pointer checks 2016-01-04 11:46:16 +01:00
Kostadin Damyanov
f8edc67001 Haiku: remove unneeded code 2015-08-12 22:14:40 +03:00
Kostadin Damyanov
951d23bd6e Haiku: remove unneeded code 2015-08-12 21:40:45 +03:00
Kostadin Damyanov
a3dfe9833d Haiku: add keyboard support 2015-07-12 00:52:47 +03:00
Kostadin Damyanov
b26f0cc3b3 Haiku: gl context locking 2015-07-02 18:41:32 +03:00
Kostadin Damyanov
6a788688ca Haiku: add support for mouse wheel 2015-06-21 22:18:27 +03:00
Kostadin Damyanov
009ee31302 Haiku: handle the quit request message 2015-06-20 01:59:32 +03:00
Kostadin Damyanov
cbf6b00072 Haiku: implement get_mouse_pos() and get_mouse_button_state() 2015-06-18 22:41:33 +03:00
Kostadin Damyanov
addd77d423 Haiku: read the status of the key modifiers and mouse buttons 2015-06-17 22:27:45 +03:00
Kostadin Damyanov
1c8ef76d0a Haiku: handle mouse movement and click events 2015-06-16 21:52:24 +03:00
Kostadin Damyanov
fb823c9a7a Haiku: create a GL context and initialize the audio and physics servers 2015-06-11 22:57:41 +03:00