Shockblast
2f76257da4
[GD 3.0] Fix stretch mode 2d... again
...
Objects on the screen were not displayed when the project was played,
because it looked for the values of width and height of menus with old
names (godot 2.1?) For that reason delivered value (0, 0).
2017-04-16 18:02:22 -03:00
Andreas Haas
c06a2db63a
Use .godot as file extension for project files.
...
Now project files don't have to be named "godot.cfg" anymore, they can have any name so as long as it ends with *.godot.
Also godot will automatically start the editor now if launched with a project file as an argument.
This allows for double-clicking of projects to open them :)
Code-wise this should be complete, but there's still work to do:
- Make a nice icon for godot projects.
- Work on installers/packaging -> register the extension and icon with godot.
- Update the 2.1 to 3.0 exporter.
Tested on linux and windows so far.
2017-04-16 10:19:07 +02:00
darkoff9
200c84b6b2
Fix joystick crash when mapping is -1
2017-04-10 23:41:47 +02:00
Andreas Haas
31a80ded89
Re-add ouya gamepad mapping.
...
Also adds yet another type of ps4 controller.
2017-04-10 16:35:12 +02:00
Sergey Pusnei
8589ca3903
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
Juan Linietsky
7ba71fb243
Restored (And auto-generated) splash image
2017-04-09 20:03:38 -03:00
Rémi Verschelde
df61dc4b2b
Add "Godot Engine contributors" copyright line
2017-04-08 00:11:42 +02:00
Rémi Verschelde
b81d5f4687
Merge pull request #8308 from RandomShaper/optimize-out-debug-n-non-tools
...
Optimize-out some debug and/or non-tools methods
2017-04-07 22:22:54 +02:00
Pedro J. Estébanez
665bf52948
Optimize-out some debug and/or non-tools methods
...
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-07 16:35:55 +02:00
Juan Linietsky
74808ac4d9
New particle system, mostly working, some small features missing.
2017-04-06 23:49:27 -03:00
Ferenc Arn
9a37ff1e34
Added various functions basic math classes. Also enabled math checks only for debug builds.
...
Added set_scale, set_rotation_euler, set_rotation_axis_angle. Addresses #2565 directly.
Added an euler angle constructor for Basis in GDScript and also exposed is_normalized for vectors and quaternions.
Various other changes mostly cosmetic in nature.
2017-04-06 13:03:56 -05:00
Pedro J. Estébanez
58cd4461d1
Fix warped mouse panning on Linux
...
Fix/improve it also on certain edge cases for any platform
2017-04-03 02:56:14 +02:00
Andreas Haas
b9d606af71
Input: Update Gamepad mappings.
2017-04-02 09:43:37 +02:00
Jordan Patterson
86de80db89
Initialize hat values for mapping and revert X360 mappings.
2017-03-31 13:27:02 +02:00
Andreas Haas
c0b6756875
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
4911555f6c
Merge pull request #8137 from Hinsbart/mbutton_pos
...
Input: Update mouse position on mouse-button events.
2017-03-24 22:53:27 +01:00
Rémi Verschelde
98baec6880
Merge pull request #8109 from RandomShaper/warped-panning
...
Implement warped mouse panning for 2D & 3D editors
2017-03-24 22:50:39 +01:00
Andreas Haas
468719c480
Input: Update mouse position on mouse-button events.
2017-03-24 21:56:39 +01:00
Rémi Verschelde
debeee56f7
Fix typos in source code using codespell
...
From https://github.com/lucasdemarchi/codespell
2017-03-24 21:45:31 +01:00
Pedro J. Estébanez
f5004b78d0
Implement warped mouse panning for 2D & 3D editors
...
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-22 21:36:52 +01:00
Andreas Haas
a69e449782
Input: bind parse_input_event()
...
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-19 09:20:44 +01:00
Rémi Verschelde
5dbf1809c6
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
e1c1d7d1d7
Add a bunch of missing Godot headers in own files
2017-03-05 15:47:28 +01:00
Rémi Verschelde
49c065d29c
Refactoring: rename tools/editor/ to editor/
...
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-05 14:21:25 +01:00
Geequlim
886f646cba
Implements modules documents
...
Editor can generate documents for modules in thier own xml files
2017-03-04 17:20:36 +01:00
Thaer Razeq
f50488a361
Various fixes detected using PVS-Studio static analyzer.
...
- 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-28 07:52:02 -06:00
Rémi Verschelde
34a0aa6900
Merge pull request #7862 from Hinsbart/joypad_connections
...
Better handling of joypad device IDs.
2017-02-26 21:30:24 +01:00
Andreas Haas
a175ac7032
Better handling of joypad device IDs.
...
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-26 21:01:31 +01:00
Rémi Verschelde
1ec8b9fb7d
Merge pull request #7851 from shlomif/fix-some-compilation-warnings
...
Get rid of some compilation warnings.
2017-02-26 20:22:48 +01:00
Shlomi Fish
0a2c387d5c
Fix some compilation warnings.
...
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 11:59:19 +02:00
Juan Linietsky
de0045cf1b
-renamed globals.h to global_config.cpp (this seems to have caused a few modified files)
...
-.pck and .zip exporting redone, seems to be working..
2017-02-21 00:06:30 -03:00
Hein-Pieter van Braam
411ee71b4d
Rename the _MD macro to D_METHOD
...
This new name also makes its purpose a little clearer
This is a step towards fixing #56
2017-02-13 12:50:02 +01:00
Rémi Verschelde
b87a232668
Reorder the folders in tools to prepare moving tools/editor
...
- `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-09 00:08:27 +01:00
Juan Linietsky
102b5fce85
Renamed engine.cfg to godot.cfg, to forcefully break compatibility with 2.x
2017-02-04 20:53:55 -03:00
Rémi Verschelde
af6d59eed6
Merge pull request #7649 from Faless/fix_input_master
...
Keyboard Input modifiers do not block actions.
2017-02-02 08:07:47 +01:00
Juan Linietsky
2cd2ca7bbc
Lot of work in new importer, importing textures now works.
2017-02-01 09:46:36 -03:00
Juan Linietsky
96de0141cc
Removed import/export system, will start new one from scratch.
2017-01-25 21:57:08 -03:00
Fabio Alessandrelli
9100db7b94
Keyboard Input modifiers do not block actions.
...
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-25 21:21:19 +01:00
Juan Linietsky
7e1afeafd4
Audio bus editing is COMPLETE!
2017-01-25 14:31:52 -03:00
Juan Linietsky
3b019bf644
Ability to delete, drag and drop audio buses!
2017-01-23 23:12:41 -03:00
Rémi Verschelde
2a0ddc1e89
Style: Various fixes to play nice with clang-format
2017-01-16 08:49:52 +01:00
Rémi Verschelde
f44ee891be
Style: Fix statements ending with ';;'
2017-01-16 08:49:52 +01:00
Rémi Verschelde
40323407df
Style: No break before list brace
...
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-16 08:48:24 +01:00
Juan Linietsky
b400c69cd4
Oops! Audio engine has vanished :D
2017-01-15 16:07:51 -03:00
Juan Linietsky
52e2a1e98d
fixed to 2D physics, makes it work again
2017-01-15 09:50:27 -03:00
Juan Linietsky
5dde810aa5
no more errors related to missing GlobalConfig::Get (or so I hope)
2017-01-14 21:57:22 -03:00
Rémi Verschelde
d4eb8ec884
Merge pull request #7127 from BastiaanOlij/ios_meters
...
Core motion implementation for iPhone (Accelerometer/Gyro/Magnetometer support)
2017-01-15 00:08:46 +01:00
Rémi Verschelde
93ab45b6b5
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
Rémi Verschelde
7b9f2d9929
Finish renaming *Frame GUI classes to *Rect
...
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-14 10:52:54 +01:00
Juan Linietsky
d9d77291bc
rename String.extension() -> String.get_extension() / String.basename() -> String.get_basename()
2017-01-14 00:51:09 -03:00
Juan Linietsky
a97551902e
rename Input.get_mouse_speed() to Input.get_last_mouse_speed()
2017-01-13 19:24:28 -03:00
Rémi Verschelde
f19fd7a4c1
Reenable node name case setting + code cleanups
...
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-13 22:38:43 +01:00
Juan Linietsky
e53c247cb1
Created new Engine singleton, and moved engine related OS functions to it.
2017-01-13 12:51:14 -03:00
BastiaanOlij
5e4dcb3b7f
Added support for getting gravity vector from iOS
2017-01-12 16:37:27 +11:00
Juan Linietsky
b7d69c2444
Added a BACK notification besides QUIT, so they go in separate channels.
2017-01-11 16:42:31 -03:00
Juan Linietsky
bc26f90581
Type renames:
...
Matrix32 -> Transform2D
Matrix3 -> Basis
AABB -> Rect3
RawArray -> PoolByteArray
IntArray -> PoolIntArray
FloatArray -> PoolFloatArray
Vector2Array -> PoolVector2Array
Vector3Array -> PoolVector3Array
ColorArray -> PoolColorArray
2017-01-11 00:52:51 -03:00
Andreas Haas
d963fa9a01
More fixes to Joypad renaming.
...
Windows did not compile anymore because DI8DEVTYPE_JOYPAD obviously isn't defined in the directx headers ^^
I also did the same renaming as in #7473 for the windows platform and reverted the changes in the gamepad
mappings.
2017-01-08 23:52:49 +01:00
Rémi Verschelde
8b7a86ec7b
Move tests again from core to main
...
As advised by @reduz, as tests depend on other libs.
2017-01-08 21:33:37 +01:00
Juan Linietsky
547a57777b
renamed joystick to joypad everywhere around source code!
2017-01-08 17:06:33 -03:00
Rémi Verschelde
790f629e5e
Move core engine tests to core/
2017-01-08 14:08:18 +01:00
Juan Linietsky
2ab83e1abb
Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector
2017-01-07 18:26:38 -03:00
Juan Linietsky
53ce643e52
-Changed memory functions, Memory::alloc_static*, simplified them, made them aligned to 16
...
-Changed Vector<> template to fit this.
2017-01-06 10:15:44 -03:00
Juan Linietsky
0f7af4ea51
-Changed most project settings in the engine, so they have major and minor categories.
...
-Changed SectionedPropertyEditor to support this
-Renamed Globals singleton to GlobalConfig, makes more sense.
-Changed the logic behind persisten global settings, instead of the persist checkbox, a revert button is now available
2017-01-05 09:16:00 -03:00
Juan Linietsky
118eed485e
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
...
All usages of "type" to refer to classes were renamed to "class"
ClassDB has been exposed to GDScript.
OBJ_TYPE() macro is now GDCLASS()
2017-01-02 23:03:46 -03:00
Juan Linietsky
ce26eb74bc
Merge branch 'master' of https://github.com/godotengine/godot
2017-01-02 19:12:25 -03:00
Rémi Verschelde
3f3f5a5359
Merge remote-tracking branch 'origin/gles3' into gles3-on-master
...
Various merge conflicts have been fixed manually and some mistakes
might have been made - time will tell :)
2017-01-02 21:52:26 +01:00
Rémi Verschelde
c7bc44d5ad
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
f0f04d5082
Merge pull request #6862 from Faless/fix_6388
...
Fix Keyboard Input Hangs when using modifiers
2016-11-11 10:47:10 +01:00
Juan Linietsky
cacf9ebb7f
all light types and shadows are working, pending a lot of clean-up
2016-11-09 23:55:06 -03:00
George Marques
411faaa6f4
Rename remaining WinRT references to UWP
2016-11-03 14:51:08 -02:00
George Marques
b113c7b7a3
Rename WINRT_ENABLED to UWP_ENABLED
2016-11-03 14:51:08 -02:00
Tim Roes
c34aa331ec
Fix typos and missing newlines in --help
2016-11-03 16:27:40 +01:00
Rémi Verschelde
d4c17700aa
style: Fix PEP8 whitespace issues in Python files
...
Done with `autopep8 --select=E2,W2`, fixes:
- E201 - Remove extraneous whitespace.
- E202 - Remove extraneous whitespace.
- E203 - Remove extraneous whitespace.
- E211 - Remove extraneous whitespace.
- E221 - Fix extraneous whitespace around keywords.
- E222 - Fix extraneous whitespace around keywords.
- E223 - Fix extraneous whitespace around keywords.
- E224 - Remove extraneous whitespace around operator.
- E225 - Fix missing whitespace around operator.
- E226 - Fix missing whitespace around operator.
- E227 - Fix missing whitespace around operator.
- E228 - Fix missing whitespace around operator.
- E231 - Add missing whitespace.
- E231 - Fix various deprecated code (via lib2to3).
- E241 - Fix extraneous whitespace around keywords.
- E242 - Remove extraneous whitespace around operator.
- E251 - Remove whitespace around parameter '=' sign.
- E261 - Fix spacing after comment hash.
- E262 - Fix spacing after comment hash.
- E265 - Format block comments.
- E271 - Fix extraneous whitespace around keywords.
- E272 - Fix extraneous whitespace around keywords.
- E273 - Fix extraneous whitespace around keywords.
- E274 - Fix extraneous whitespace around keywords.
- W291 - Remove trailing whitespace.
- W293 - Remove trailing whitespace.
2016-11-01 00:35:16 +01:00
Juan Linietsky
ab4126f510
Merge branch 'master' of https://github.com/godotengine/godot
2016-10-30 09:00:45 -03:00
Fabio Alessandrelli
17d7e6a142
Fix Keyboard Input Hangs when using modifiers
...
Main input parsing loop only update actions for keyboard if the state has changed.
`InputMap::event_is_action` now ignores keyboard modifiers if the event is not pressed.
Clarify difference between `InputMap::action_has_event` and `InputMap::event_is_action` in docs.
Fixes #6388 .
2016-10-19 17:52:49 +02:00
Rémi Verschelde
e96c49f849
Merge pull request #6850 from akien-mga/pr-scsub-shebang
...
SCsub: Add python shebang as a hint for syntax highlighting
2016-10-17 20:13:18 +02:00
Rémi Verschelde
fc8ccd5b8c
SCsub: Add python shebang as a hint for syntax highlighting
...
Also switch existing shebangs to "better" /usr/bin/env python.
2016-10-17 20:10:46 +02:00
Andreas Haas
fa502b7ccc
Allow whitespace in Gamepad mappings.
...
Previously, mappings that contained whitespace (most likely after a comma seperator) would not parse
correctly.
Consider the following mapping as an example:
"_test_guid_, test controller, a:b0, b:b1, leftx:a0 ,"
2016-10-15 17:55:15 +02:00
Rémi Verschelde
b675710b46
Merge pull request #6677 from J08nY/issue-pck-packer
...
PCKPacker: Move to core from tools, fixes #4129
2016-10-03 12:06:19 +02:00
Rémi Verschelde
90f4e76a46
Merge pull request #6479 from RandomShaper/improve-debug-focus
...
Improve debug focus behavior
2016-10-03 11:36:01 +02:00
J08nY
b1fba2e013
PCKPacker: moved from tools into core, fixes #4129
2016-10-01 22:07:07 +02:00
Rémi Verschelde
73a7b91459
Merge pull request #6568 from Hinsbart/joy_names
...
Add functions to get readable names for joystick events
2016-09-26 12:45:31 +02:00
Andreas Haas
e0fcd9331a
Add function to get readable names for joystick events
...
Closes #6476
2016-09-20 23:36:09 +02:00
Juan Linietsky
8b15b26eed
Click the inspected objet name to see all subresources.
2016-09-17 19:01:47 -03:00
Rémi Verschelde
1830b80719
Merge pull request #6504 from Hinsbart/joy_axis
...
Fix input action pressed state not changing for quick joystick moveme…
2016-09-17 18:37:15 +02:00
Andreas Haas
84783fe77b
Fix input action pressed state not changing for quick joystick movements.
...
fixes #6488
Also removes a bunch of dead code related to checking if a joystick axis is pressed.
2016-09-15 19:30:35 +02:00
Juan Linietsky
a75f5f039e
Added API version and hashing to ObjectTypeDB
2016-09-14 19:37:37 -03:00
Pedro J. Estébanez
66dac878ac
Improve debug focus behavior
...
Fix focusing debugged game on Windows
Add re-focusing editor on continue
2016-09-14 04:02:18 +02:00
Juan Linietsky
7a27d5d9e7
Merge pull request #6363 from vnen/winrt
...
Fix the support for WinRT/UWP
2016-09-10 11:47:42 -03:00
Juan Linietsky
c2b70fdd69
Merge pull request #6413 from caryoscelus/script_load_singletons
...
enable autoload for command-line scripts
2016-09-10 11:47:12 -03:00
George Marques
365f3d7a6e
Merge pull request #6442 from RandomShaper/fix-action-release
...
Fix Input.action_release() marking action as pressed
2016-09-10 11:12:59 -03:00
Pedro J. Estébanez
fae6dbc7f3
Fix Input.action_release() marking action as pressed
2016-09-10 04:57:21 +02:00
Andreas Haas
20bad652ef
x11: fix x360 wireless gamepad mapping.
...
Uses hat values instead of buttons for the dpad now.
Fixes #6419
2016-09-08 13:54:41 +02:00
caryoscelus
8ddc0b697b
enable autoload for command-line scripts
...
fixes #6360
2016-09-06 21:41:03 +03:00
George Marques
e21702f764
Implement missing WinRT functions
...
- Fix buildsystem for WinRT/UWP platform.
- Add audio driver and joystick mapping for WinRT.
- Enable thread class for WinRT.
- Refactor MSVC compiler architecture detection to methods.py, so it can
be used by Windows and WinRT.
2016-09-03 19:28:49 -03:00
Andreas Haas
808bd53934
Update gamepad mappings from community db.
2016-09-02 23:02:57 +02:00
Juan Linietsky
5b96c3a552
-Modified Input and added is_action_just_pressed() as well as is_action_just_released()
2016-09-01 18:59:46 -03:00
Andreas Haas
02a8604906
Fix crash when trying to access the guid of an unavailable Gamepad.
...
Throws an error now.
2016-08-28 17:14:40 +02:00
Andreas Haas
e52567bd29
Fix steam controller gamepad mapping
...
The left stick click was missing
2016-08-05 15:47:41 +02:00
Andreas Haas
ccf6b3151d
Add gamepad mapping for the steam controller userspace driver.
2016-07-26 11:54:59 +02:00
Jamil Halabi
370ae3512d
Added gyroscope support to Godot and Android
2016-07-16 01:43:32 +08:00
Rémi Verschelde
9397458cc0
Merge pull request #5634 from vnen/assetlib-map-crash
...
Fix crash on asset lib install
2016-07-11 00:17:54 +02:00
George Marques
1a1b62748a
Fix crash on asset lib install
...
This is not the perfect solution, but fixes the crash and avoid a
dependency on EditorNode.
2016-07-10 17:19:29 -03:00
punto-
bba89aef3b
Merge pull request #5559 from Hinsbart/connected_joysticks
...
Input: add get_connected_joysticks() method.
2016-07-10 14:00:27 -03:00
Juan Linietsky
0e6e0ed0e5
Merge pull request #5533 from Hinsbart/cursor_atex
...
Can use AtlasTextures as custom mouse cursor.
2016-07-10 12:41:57 -03:00
Juan Linietsky
920310e72a
removed target_fps option, moved it to debug (it makes no sense for games). Added a frame_delay option for games that don't want to use the CPU fully.
2016-07-09 12:34:30 -03:00
Rémi Verschelde
dd01286137
Regenerate hardcoded Godot icon to match current one
...
Used `xxd -i icon64.png data.h` to get the raw array from a 64x64 export
of the SVG icon. Also improved the formatting of the splash array to avoid
having 65k char-long lines.
2016-07-09 16:05:00 +02:00
Rémi Verschelde
b6ac91c0e6
Removed unused variables (first pass)
...
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
2016-07-07 23:15:03 +02:00
Andreas Haas
45cfd199a4
Input: add get_connected_joysticks() method.
...
fixes #5465
2016-07-05 14:08:02 +02:00
Andreas Haas
91add16300
Can use AtlasTextures as custom mouse cursor.
...
fixes #3957
2016-07-03 19:36:12 +02:00
Andreas Haas
6d09183c44
Set default duration parameter of joystick vibration to 0.
2016-06-21 17:06:41 +02:00
Wilhem Barbier
913e3206db
Fix the joystick vibration timestamp
2016-06-20 09:57:23 +02:00
Rémi Verschelde
57e1387199
Merge pull request #5225 from Hinsbart/x_rumble
...
Windows: Support gamepad vibration using XInput.
2016-06-19 12:59:18 +02:00
Juan Linietsky
5e7f1fc79b
update EditorDirDialog on external change, closes #4629
2016-06-18 16:03:35 -03:00
Rémi Verschelde
a7fc04626a
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
Andreas Haas
0e8b860048
Windows: Support gamepad vibration using XInput.
2016-06-15 14:40:57 +02:00
Wilhem Barbier
f665200df7
Add joystick vibration support on Linux ( #5043 )
2016-06-15 07:25:35 +02:00
Andreas Haas
3d0b390457
Update gamepad mappings.
...
Merge mappings from https://github.com/gabomdq/SDL_GameControllerDB
2016-06-14 02:32:30 +02:00
Juan Linietsky
2420e46b44
vsync support
...
-works on windows
-may not work on X11, if so please fix
-OSX does not seem to support disabling vsync
2016-06-05 19:14:33 -03:00
Juan Linietsky
64fd75d91a
Make Input Actions config not affect the editor
2016-06-05 01:19:42 -03:00
Juan Linietsky
9b1f8230ec
-Some fixes to OSX retina scaling for window functions
...
-Implemented HiDPI detection and support for Godot Editor!
2016-05-30 00:28:29 -03:00
fluffrabbit
4877b714b3
Add magnetometer sensor support for Android
2016-05-27 14:36:55 -03:00
Calinou
cc5a020afe
Change low processor usage mode to cap to 60 FPS rather than 40 FPS
...
This results in smoother operation in the editor, without needing to
resort to the "Update Always" method which uses more resources than
needed.
2016-05-22 23:51:38 +02:00
Juan Linietsky
a75f896338
First version of Profiler
...
It is now possible to profile GDScript as well as some parts of Godot
internals.
2016-05-21 21:18:16 -03:00
Hinsbart
d6cd5108e3
Fix ds3 gamepad mapping
2016-05-04 00:21:32 +02:00
eska
0ee8b74101
Always set default clear color
2016-04-15 19:20:50 +02:00
Saracen
6eb4812317
Borderless window support for the Win32 build. Default window position is now also centred.
2016-03-12 16:38:12 +00:00
Juan Linietsky
8b1dcbfe4d
-Made editor support SSL certs by default (embedded them)
...
-Made asset sharing support https
-Many fixes to HTTPRequest
-Added an asset installer dialog
-Visual cleanups to asset sharing tab
-Fixed some issues in ScrollContainer, hope it does not break things
-Asset sharing tab is not visible (hidden on purpose) for now.
2016-03-12 10:46:38 -03:00
Hubert Jarosz
4a4f247914
remove trailing whitespace
2016-03-09 00:00:52 +01:00
hinsbart
0022af9647
use joystick name from mapping-db if available
2016-02-29 16:48:19 +01:00
Krzysztof Jankowski
6b6ce35e78
OUYA gamepad mappings fix
...
Fix gamepad mappings for OUYA revision 4
2016-02-25 17:24:57 +01:00
Ariel Manzur
ea751724a2
adds -pm and -project_manager command line options to start project manager
...
fixes bug where the user has an engine.cfg on the executable directory so it runs the game instead of opening the project manager
2016-02-25 03:02:09 -03:00
Dana Olson
7efb45e0db
added more Android gamepad mappings
2016-02-24 00:40:27 -05:00
Dana Olson
862c56c004
added a couple more Linux mappings, tweaked Ouya Linux mapping
2016-02-23 11:37:32 -05:00
hondres
9134ec942e
fix is_joy_mapped return value
2016-02-16 23:23:06 +01:00
hondres
04f7c32847
fix joystick axis handling for Input.is_action_pressed()
2016-02-15 22:26:20 +01:00
hondres
8e359963b6
x11: analog triggers for ps4 gamepad
2016-02-14 00:03:53 +01:00
punto-
b6b33e8886
Merge pull request #3428 from Hinsbart/android-gamepad
...
support gamepad remapping on android
2016-02-08 20:09:02 -03:00
Rémi Verschelde
c0aade4ba4
Merge pull request #3493 from Hinsbart/wm_class
...
x11: use different strings for WM_CLASS depending on context
2016-02-03 11:30:22 +01:00
Dana Olson
d1aacb8f33
added more gamepad mappings
2016-02-01 12:24:19 -05:00
Juan Linietsky
0364d6b076
do not fail on invalid audio driver, fixes #3466
2016-01-31 18:47:13 -03:00
hondres
11e4c128ac
x11: use different strings for WM_CLASS depending on context
2016-01-27 21:53:37 +01:00
Hondres
e7b6e3f20b
use fallback mapping from list
2016-01-27 12:18:34 +01:00
hondres
4d17eca504
clear joystick state on disconnection
2016-01-26 04:40:04 +01:00
hondres
285bcac224
can use fallback mapping on all platforms
2016-01-24 18:01:37 +01:00
hondres
e7c920fdba
support gamepad remapping on android
2016-01-24 05:29:09 +01:00
hondres
1ad6ca0a81
add mappings and increase max number of buttons
2016-01-22 22:56:05 +01:00
Hinsbart
77858b66d3
html5 gamepad support
2016-01-21 02:30:24 +01:00
volzhs
fb2bf78591
Add ability to set "keep screen on" for android
2016-01-16 20:57:34 +09:00
Rémi Verschelde
a44e9ebfa4
Fix wrong type check for autoload
...
Regression from c633a29
. Fixes #3342
2016-01-13 20:42:39 +01:00
Juan Linietsky
c633a29a39
improve reporting of error in wrong inheritance for autoload script
2016-01-13 09:42:03 -03:00
Juan Linietsky
96317566c2
attempt another fix
2016-01-13 09:10:20 -03:00
Juan Linietsky
5fca2bd4bc
Reworked how autoloads are load to make sure identifiers always exist, please check if this resolves bug #3156
2016-01-13 08:27:14 -03:00
punto-
7393e40452
Merge pull request #3272 from Hinsbart/joy-binding
...
Add some joystick functions to input. Enables manipulation of mapping…
2016-01-12 03:59:19 -03:00
Rémi Verschelde
1f1c3038c2
Update copyright in remaining files + prints in the UI
2016-01-11 21:34:22 +01:00
hondres
c632c13c66
Add some joystick functions to input. Enables manipulation of mappings at runtime
2016-01-08 00:40:41 +01:00
hondres
117ae93cf1
Analog values for gamepad triggers, using axes 6 & 7
2016-01-02 03:34:32 +01:00
George Marques
5be9ff7b67
Update copyright to 2016 in headers
2016-01-01 11:50:53 -02:00
Juan Linietsky
ec3d17b4e2
force thread model to single-safe when running editor, fixes #2387
2015-12-31 16:24:27 -03:00
reduz
555ad5f8b7
removed wron return types, fixes #2483
...
removed console, which was obsolete and unused sine long long ago
2015-12-29 18:46:21 -03:00
reduz
e0d21d2158
Ability to set autoloads as singleton global variables
2015-12-28 15:59:20 -03:00
Ariel Manzur
5f1ae5eac2
fix debouncing in axis buttons
2015-12-20 11:33:29 -03:00
hondres
87dab29f4b
Use tabs instead of spaces for new gamepad code
2015-12-18 19:15:32 +01:00
hondres
af633c7941
Better gamepad support
2015-12-18 06:12:53 +01:00
Juan Linietsky
cc7880fba5
-added windowed mode with -w, fixes #3020
...
-changed default windowed resolution to 1280x720
2015-12-12 12:06:53 -03:00
est31
523b67e740
Print error if no export destination has been passed
2015-11-26 22:35:27 +01:00
Juan Linietsky
082e3fbb29
Merge branch 'master' of https://github.com/okamstudio/godot
...
Conflicts:
main/main.cpp
2015-11-24 10:52:41 -03:00
Juan Linietsky
ccd40f76e8
-work in progress resourceparser and .tscn parser. Still non-functional
...
-fixed theora so it can compile theoralib but not theora
-fixed generation of windows icon in .rc, which didn't previously work in 32 bits
2015-11-24 10:42:05 -03:00
Rémi Verschelde
b01546f91c
Fix typo, missing quote
2015-11-24 10:14:06 +01:00
Rémi Verschelde
0442ce2e2e
Merge pull request #2876 from akien-mga/pr-boot-splash-debug
...
Silence too verbose boot splash debug info
2015-11-24 09:36:11 +01:00
Rémi Verschelde
00ddb532fb
Silence too verbose boot splash debug info
2015-11-23 00:38:12 +01:00
Rémi Verschelde
f99b630993
Load main scene if defined when running editor from the command line
...
If no main scene is defined, or if it's an empty string, the previous behaviour will still be used, i.e. launch the project manager.
A small fix was also added not to maximize the window when opening the project manager via -editor (i.e. "godot" and "godot -e" will behave the same when no project is in the path).
Fixes #2869 .
2015-11-22 17:36:03 +01:00
Juan Linietsky
0168947084
Merge pull request #2518 from masoudbh3/godot-icons
...
Add icon to exe file in windows export
2015-11-19 00:08:47 -03:00
Juan Linietsky
fe9f4eda9e
Merge pull request #2706 from phobos-tro/main_memleaks
...
Fixing memleaks in main/main.cpp
2015-11-18 19:43:45 -03:00
Juan Linietsky
0c3386b2ed
Merge pull request #2707 from akien-mga/master
...
Cosmetic fixes to SCons buildsystem
2015-11-18 19:43:28 -03:00
masoud bh
24f3f43457
Add icon to exe file in windows export
...
add version_info and icon sections in "export to windows platform".
add version_info and icon to godot exe file (editor & template exe).
fix an problem in image class.
change all default icons to android export icon (a little more rounded).
create an python script for convert file to cpp byte array for use in
'splash.h'.
2015-11-09 02:23:58 +03:30
Rémi Verschelde
399b1b0474
Cosmetic fixes to SCons buildsystem
...
- Removed trailing spaces
- Made sure all indentation is done using tabs (fixes #39 )
- Potentially fixed an identation issue for openssl check
2015-11-01 20:53:26 +01:00
Rémi Verschelde
fc2c3bda5c
Fix arguments parsing in the main function
...
Fixes #2611 which was a regression from 692216b86a
.
The bogus behaviour considered that if there were more than one arguments left to parse,
they would be a pair of arguments (switch and its parameter), and thus skipped the next
argument in all cases (thus potentially skipping a "-editor", which triggered #2611 ).
This is fixed by checking first for arguments that don't expect a parameter, and only
afterwards for arguments that expect a parameter. And if a "pair" of arguments is not
valid, we no longer increment the counter.
2015-11-01 17:50:44 +01:00
Phobos Tro
8c0c279280
Fixing memleaks in main/main.cpp
2015-10-30 19:56:07 +08:00
Juan Linietsky
1b5622fb9b
Merge pull request #2395 from MrMormon/patch-1
...
Fixed misspelled local variable for code clarity
2015-10-17 10:45:16 -03:00
Juan Linietsky
7060eaaa1b
Merge pull request #2481 from firefly2442/cppcheck-arrayindexthencheck
...
ran cppcheck, fixed cases where array index is used before limits check
2015-10-17 10:23:15 -03:00
Juan Linietsky
79e5ced7e6
-A little More control about pixel snapping in 2D
2015-10-13 15:53:34 -03:00
firefly2442
692216b86a
ran cppcheck, fixed cases where array index is used before limits check
2015-10-12 09:45:44 -05:00
Juan Linietsky
9962518ffd
Merge branch 'master' of https://github.com/okamstudio/godot
2015-09-24 18:07:13 -03:00
Juan Linietsky
82a3304458
Added ability to set custom mouse cursors. Not hardware accelerated yet.
2015-09-24 18:06:15 -03:00
Juan Linietsky
83d9a692be
Ability to visually debug geometry visually:
...
-Visible 2D and 3D Shapes, Polygons, Tile collisions, etc.
-Visible Navmesh and Navpoly
-Visible collision contacts for 2D and 3D as a red point
-Customizable colors in project settings
2015-09-20 13:03:46 -03:00
Juan Linietsky
3f9e5afe68
begin work on debugging collisions....
2015-09-18 23:10:58 -03:00
Juan Linietsky
3013a83f2f
Merge branch 'master' of https://github.com/okamstudio/godot
2015-09-10 00:12:05 -03:00
Juan Linietsky
0fb7b5aa0c
HTML5 exporter Improvements
...
-Better template handling
-Voice support
-Stream support
2015-09-10 00:10:54 -03:00
volzhs
cf98b44d3f
fix game window runs only 800x600
2015-09-05 15:47:23 +09:00
Juan Linietsky
b0aa49accb
merged some stuff for okam
2015-09-03 23:24:55 -03:00
Juan Linietsky
cf57a654d7
new editor settings customization of where to run the game from the editor
2015-08-30 23:36:46 -03:00
Juan Linietsky
b4acd18f32
-display/emulate_touchscreen now really emulates a touchscreen
...
-icons to show node menus
2015-08-29 17:16:11 -03:00
Joshua Olson
32b52e8041
Fixed misspelled local variable for code clarity
...
Specifically, tar(g)et_fps
2015-08-26 14:21:04 -06:00
Juan Linietsky
d1da2c2995
error debugger
...
shows the list of errors that happened during running the game, traces
can be analyzed
2015-08-04 09:47:32 -03:00
Juan Linietsky
55b34e05b3
-some changes by okam
2015-06-30 11:28:43 -03:00
Juan Linietsky
95047562d7
Several performance improvements, mainly in loading and instancing scenes and resources.
...
A general speedup should be apparent, with even more peformance increase when compiling optimized.
WARNING: Tested and it seems to work, but if something breaks, please report.
2015-06-29 00:29:49 -03:00
Juan Linietsky
9a58960d28
some editor window changes
...
-ability to make dock position configurable, and it gets saved
-editor starts maximized default
2015-06-13 22:12:53 -03:00
Juan Linietsky
b524b40fdc
-fixed many memory initialization issues
...
-fixed deadlock on previews thread
-fixed compilation errors on unix
2015-06-06 22:06:58 -03:00
Juan Linietsky
954256268a
Merge branch 'master' of https://github.com/okamstudio/godot
...
Conflicts:
demos/2d/motion/engine.cfg
2015-06-06 11:09:00 -03:00