summaryrefslogtreecommitdiff
path: root/main
AgeCommit message (Collapse)Author
2017-04-10Fix joystick crash when mapping is -1darkoff9
2017-04-10Re-add ouya gamepad mapping.Andreas Haas
Also adds yet another type of ps4 controller.
2017-04-10Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei
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-09Restored (And auto-generated) splash imageJuan Linietsky
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-04-07Merge pull request #8308 from RandomShaper/optimize-out-debug-n-non-toolsRémi Verschelde
Optimize-out some debug and/or non-tools methods
2017-04-07Optimize-out some debug and/or non-tools methodsPedro J. Estébanez
Collisions and nav debug are conditionally compiled depending on DEBUG_ENABLED is_editor_hint() and is_node_being_edited() are compiled only with TOOLS_ENABLED Every affected method is implemented in the header in case its macro is not present (the getters just returning false and the setters having an empty body) so the compiler can inline and finally no-op-out them as likely as possible. is_node_being_edited() already showed a similar optimization effort and has been adapted to this change. Furthermore, and as a consequence, -debugcol and -debugnav will not work on non-debug (strict release) builds. This can bring a little bit of runtime performance on release and non-tooled builds (less code, so less cycles to spend and maybe more cache friendly).
2017-04-06New particle system, mostly working, some small features missing.Juan Linietsky
2017-04-03Fix warped mouse panning on LinuxPedro J. Estébanez
Fix/improve it also on certain edge cases for any platform
2017-04-02Input: Update Gamepad mappings.Andreas Haas
2017-03-31Initialize hat values for mapping and revert X360 mappings.Jordan Patterson
2017-03-26Input: Remove usage of platform dependent event IDs.Andreas Haas
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-24Merge pull request #8137 from Hinsbart/mbutton_posRémi Verschelde
Input: Update mouse position on mouse-button events.
2017-03-24Merge pull request #8109 from RandomShaper/warped-panningRémi Verschelde
Implement warped mouse panning for 2D & 3D editors
2017-03-24Input: Update mouse position on mouse-button events.Andreas Haas
2017-03-24Fix typos in source code using codespellRémi Verschelde
From https://github.com/lucasdemarchi/codespell
2017-03-22Implement warped mouse panning for 2D & 3D editorsPedro J. Estébanez
Enabled by default as in Blender, but can be disabled separately for 2D & 3D; the core functionality is in Input so this could be reused or even exposed to scripts in the future
2017-03-19Input: bind parse_input_event()Andreas Haas
When using get_tree().input_event(ev), the engine will JUST send the event down the SceneTree. However, you won't get any of the benefits of the Input singleton: - No InputMap actions will be emitted - The internal input state won't be modified, so methods like `Input.get_mouse_pos()` or `Input.is_joy_button_pressed` won't return the expected output after sending the event. This is fixed by using `Input.parse_input_event(ev)` instead. I guess we'll also have to update the docs to reflect that this is the preferred method of sending custom InputEvents.
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
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-05Add a bunch of missing Godot headers in own filesRémi Verschelde
2017-03-05Refactoring: rename tools/editor/ to editor/Rémi Verschelde
The other subfolders of tools/ had already been moved to either editor/, misc/ or thirdparty/, so the hiding the editor code that deep was no longer meaningful.
2017-03-04Implements modules documentsGeequlim
Editor can generate documents for modules in thier own xml files
2017-02-28 Various fixes detected using PVS-Studio static analyzer.Thaer Razeq
- Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements
2017-02-26Merge pull request #7862 from Hinsbart/joypad_connectionsRémi Verschelde
Better handling of joypad device IDs.
2017-02-26Better handling of joypad device IDs.Andreas Haas
Now InputDefault is responsible for giving out joypad device IDs to the platform, instead of each platform handling this itself. This makes it possible for c++ modules to add their own "custom" gamepad devices, without the risk of messing up events in case the user also has regular gamepads attached (using the OS code). For now, it's implemented for the main desktop platforms. Possible targets for future work: android, uwp, javascript
2017-02-26Merge pull request #7851 from shlomif/fix-some-compilation-warningsRémi Verschelde
Get rid of some compilation warnings.
2017-02-21Fix some compilation warnings.Shlomi Fish
Redone the commit based on the input in https://github.com/godotengine/godot/pull/7851 . Not all warnings were fixed but it's a start.
2017-02-21-renamed globals.h to global_config.cpp (this seems to have caused a few ↵Juan Linietsky
modified files) -.pck and .zip exporting redone, seems to be working..
2017-02-13Rename the _MD macro to D_METHODHein-Pieter van Braam
This new name also makes its purpose a little clearer This is a step towards fixing #56
2017-02-09Reorder the folders in tools to prepare moving tools/editorRémi Verschelde
- `certs` and `editor_fonts` go to `thirdparty` - `dist` and `scripts` go to a new `misc` folder - `collada` and `doc` go to `tools/editor` The next step will be to rename `tools/editor` to `editor` directly, but this will be done at the right time to avoid breaking too many PRs.
2017-02-04Renamed engine.cfg to godot.cfg, to forcefully break compatibility with 2.xJuan Linietsky
2017-02-02Merge pull request #7649 from Faless/fix_input_masterRémi Verschelde
Keyboard Input modifiers do not block actions.
2017-02-01Lot of work in new importer, importing textures now works.Juan Linietsky
2017-01-25Removed import/export system, will start new one from scratch.Juan Linietsky
2017-01-25Keyboard Input modifiers do not block actions.Fabio Alessandrelli
This means, if you press "F" while holding "shift" and there is and action registered for "F" that action should be pressed. This commit restore this behaviour, lost when implementing is_action_just_pressed. If you want "blocking modifiers" you should code it via script. Fixes 6826
2017-01-25Audio bus editing is COMPLETE!Juan Linietsky
2017-01-23Ability to delete, drag and drop audio buses!Juan Linietsky
2017-01-16Style: Various fixes to play nice with clang-formatRémi Verschelde
2017-01-16Style: Fix statements ending with ';;'Rémi Verschelde
2017-01-16Style: No break before list braceRémi Verschelde
clang-format does not handle that well *at all*. For the reference, found the relevant pieces of code with: `ag "=[ "$'\t'"]?"$'\n'"[ "$'\t'"]?{" --ignore=thirdparty`
2017-01-15Oops! Audio engine has vanished :DJuan Linietsky
2017-01-15fixed to 2D physics, makes it work againJuan Linietsky
2017-01-14no more errors related to missing GlobalConfig::Get (or so I hope)Juan Linietsky
2017-01-15Merge pull request #7127 from BastiaanOlij/ios_metersRémi Verschelde
Core motion implementation for iPhone (Accelerometer/Gyro/Magnetometer support)
2017-01-14Style: Fix whole-line commented codeRémi Verschelde
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-14Finish renaming *Frame GUI classes to *RectRémi Verschelde
ReferenceFrame had been overlooked, and the cpp files still used the old names. Also ripgrep'ed it all to find some forgotten references.
2017-01-14rename String.extension() -> String.get_extension() / String.basename() -> ↵Juan Linietsky
String.get_basename()
2017-01-13rename Input.get_mouse_speed() to Input.get_last_mouse_speed()Juan Linietsky
2017-01-13Reenable node name case setting + code cleanupsRémi Verschelde
The method _generate_serial_child_name is indeed called relatively often in editor mode, but that commented out code chunk hardly adds to its slowness (and with the default setting, not at all). Also did various related code cleanups and simplifications.
2017-01-13Created new Engine singleton, and moved engine related OS functions to it.Juan Linietsky