aboutsummaryrefslogtreecommitdiff
path: root/core/os
Commit message (Collapse)AuthorAgeFilesLines
* Move core thirdparty files to thirdparty/{minizip,misc}Rémi Verschelde2017-04-281-2/+4
|
* Fix PRNG randomization.Ferenc Arn2017-04-171-1/+0
| | | | | | | | PCG32 doesn't like small seeds, which leads to zero random values (prior to #7532, zero values were handled as special cases). Use a large default seed, and also add a shift in Math::randomize. Fixes #8423.
* Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei2017-04-103-3/+3
| | | | | | | | 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
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-0832-0/+32
|
* added dlscript moduleKarroffel2017-04-031-3/+3
| | | | | | | | | This module was written by bojidar-bg and me, with the help of ClikCode and touilleMan. This adds a module to Godot that enables the use of dynamic libraries as a source for scripts. That also allows third party libraries to be linked to Godot more easily and without creating modules. For a readme see https://github.com/GodotNativeTools/godot_headers/blob/master/README.md
* Added methods for opening dynamic libraries to OSKarroffel2017-03-291-0/+4
|
* Merge pull request #8133 from Hinsbart/joy_constantsRémi Verschelde2017-03-241-31/+16
|\ | | | | Input: Refactor JOY_* constants.
| * Input: Refactor JOY_* constants.Andreas Haas2017-03-241-31/+16
| | | | | | | | | | | | | | **Breaking change** Removed the `JOY_SNES_*` and `JOY_SEGA_*` constants. Imho there's no reason for a modern game engine to provide button aliases for decades-old hardware. Also renamed `JOY_ANALOG_{0,1}_{X,Y}` to `JOY_ANALOG_{L,R}{X,Y}` and removed `JOY_ANALOG_2_*`.
* | Implement warped mouse panning for 2D & 3D editorsPedro J. Estébanez2017-03-221-0/+1
|/ | | | | 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
* Input: bind parse_input_event()Andreas Haas2017-03-192-0/+3
| | | | | | | | | | 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.
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-0532-1472/+1334
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Add a bunch of missing Godot headers in own filesRémi Verschelde2017-03-053-2/+59
|
* Add API to access battery power stateJulian Murgia2017-03-043-0/+60
| | | | | | | | | | | | | | Done: - X11, server (tested) - Windows (developed, would be nice to retest) - OSX (not tested) Prepared (not developed): - Android (code is here, but may not compile) - iphone - winrt - bb10 - haiku - javascript
* -renamed globals.h to global_config.cpp (this seems to have caused a few ↵Juan Linietsky2017-02-214-4/+4
| | | | | | modified files) -.pck and .zip exporting redone, seems to be working..
* Rename the _MD macro to D_METHODHein-Pieter van Braam2017-02-132-40/+40
| | | | | | This new name also makes its purpose a little clearer This is a step towards fixing #56
* Several bugfixes, improving the import workflowJuan Linietsky2017-02-061-0/+2
|
* Added focus tracking in X11 and Windows classes, added new confined mouse ↵Ilija Boshkov2017-01-253-3/+6
| | | | mode (#7162)
* Style: Various fixes to play nice with clang-formatRémi Verschelde2017-01-162-2/+8
|
* Style: Fix statements ending with ';;'Rémi Verschelde2017-01-161-1/+1
|
* Merge pull request #7127 from BastiaanOlij/ios_metersRémi Verschelde2017-01-152-0/+2
|\ | | | | Core motion implementation for iPhone (Accelerometer/Gyro/Magnetometer support)
| * Added support for getting gravity vector from iOSBastiaanOlij2017-01-122-0/+2
| |
* | Style: Fix whole-line commented codeRémi Verschelde2017-01-142-3/+3
| | | | | | | | | | 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.
* | Fixed dir access return value, changed it to Error like all other funcsJuan Linietsky2017-01-141-1/+1
| |
* | rename Input.get_mouse_speed() to Input.get_last_mouse_speed()Juan Linietsky2017-01-132-2/+2
| |
* | Replace Engine version API by preexisting OS oneRémi Verschelde2017-01-132-27/+4
| | | | | | | | | | | | It outputs a single Dictionary with all relevant information as keys, that will less bloat the documentation and provide all details in one function call.
* | Created new Engine singleton, and moved engine related OS functions to it.Juan Linietsky2017-01-132-79/+4
|/
* Made InputEvent use floating point coordinates.Juan Linietsky2017-01-121-6/+6
|
* Added a BACK notification besides QUIT, so they go in separate channels.Juan Linietsky2017-01-111-5/+6
|
* Type renames:Juan Linietsky2017-01-113-3/+3
| | | | | | | | | | | | Matrix32 -> Transform2D Matrix3 -> Basis AABB -> Rect3 RawArray -> PoolByteArray IntArray -> PoolIntArray FloatArray -> PoolFloatArray Vector2Array -> PoolVector2Array Vector3Array -> PoolVector3Array ColorArray -> PoolColorArray
* -Translation text will change automatically for in-game buttons, labels, ↵Juan Linietsky2017-01-091-0/+1
| | | | | | | poups when translation is changed. -Added a NOTIFICATION_TRANSLATION_CHANGED for controls that need custom code -Sorry, editor will not update automatically because it uses a different translatio method.
* renamed joystick to joypad everywhere around source code!Juan Linietsky2017-01-085-18/+18
|
* Memory pool vectors (DVector) have been enormously simplified in code, and ↵Juan Linietsky2017-01-0711-850/+69
| | | | renamed to PoolVector
* -Changed memory functions, Memory::alloc_static*, simplified them, made them ↵Juan Linietsky2017-01-067-246/+224
| | | | | | aligned to 16 -Changed Vector<> template to fit this.
* -Changed most project settings in the engine, so they have major and minor ↵Juan Linietsky2017-01-054-8/+8
| | | | | | | | 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
* ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-025-42/+42
| | | | | | | | 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()
* Merge remote-tracking branch 'origin/gles3' into gles3-on-masterRémi Verschelde2017-01-022-1/+3
|\ | | | | | | | | Various merge conflicts have been fixed manually and some mistakes might have been made - time will tell :)
| * 2D Shaders are working again using the new syntax, though all is buggy in ↵Juan Linietsky2016-10-102-1/+3
| | | | | | | | general
* | Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-0137-37/+37
| | | | | | | | | | | | | | | | 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!
* | memory ops implemented as OS functions by defaultAriel Manzur2016-11-182-121/+8
| | | | | | | | (cherry picked from commit 67f65f66391327b2967a20a89c3627e1dd6e84eb)
* | vsnc --> vsyncISylvox2016-11-082-2/+2
| |
* | style: Fix PEP8 whitespace issues in Python filesRémi Verschelde2016-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fix comparison bug with InputEventvolzhs2016-10-231-1/+2
| |
* | SCsub: Add python shebang as a hint for syntax highlightingRémi Verschelde2016-10-171-0/+2
|/ | | | Also switch existing shebangs to "better" /usr/bin/env python.
* Merge pull request #6479 from RandomShaper/improve-debug-focusRémi Verschelde2016-10-031-0/+1
|\ | | | | Improve debug focus behavior
| * Improve debug focus behaviorPedro J. Estébanez2016-09-141-0/+1
| | | | | | | | | | Fix focusing debugged game on Windows Add re-focusing editor on continue
* | Code completion for is_action_just_{pressed, released}Andreas Haas2016-09-261-1/+1
| | | | | | | | fixes #6621
* | Merge pull request #6568 from Hinsbart/joy_namesRémi Verschelde2016-09-262-0/+9
|\ \ | | | | | | Add functions to get readable names for joystick events
| * | Add function to get readable names for joystick eventsAndreas Haas2016-09-202-0/+9
| |/ | | | | | | Closes #6476
* / Fix input action pressed state not changing for quick joystick movements.Andreas Haas2016-09-151-1/+1
|/ | | | | fixes #6488 Also removes a bunch of dead code related to checking if a joystick axis is pressed.
* InputEvent: Fix event comparisons when type is NONERémi Verschelde2016-09-021-0/+4
| | | | | Was a regression from 2e5a4cb5ca33576ea81601f949b2e633ff92213c. Fixes #6376.