aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/os_unix.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-05-10Add error printing functions to GDNativesheepandshepherd2-0/+13
2017-05-08Put brave old bb10 platform to a well-deserved restRémi Verschelde22-3153/+2
Add some 🔥 to appease @reduz. Fixes #8692.
2017-05-08Fixed the IP resolver code blocking the main thread, it uses a Mutex now to ↵Marcelo Fernandez1-18/+47
lock its own thread.
2017-05-08RayCast2D: fix detached arrow tipPoommetee Ketson1-4/+4
2017-05-08Improved freelookMarc Gilleron3-68/+174
- Fix movement input affecting all viewports even when clicking outside - Freelook up movement is now relative - Prevent tool shortcut conflict when moving - De-hardcode tool shortcuts (select, move, rotate, scale, wireframe) - Movement speed depends on zoom distance (like panning) - Mouse wheel controls speed (Blender-style) due to above point - Added zoom distance indicator, hides after short delay
2017-05-07Implemented scrolling factor for smooth trackpad scrollingtoger515-71/+118
Working platforms platform: OSX, Windows. Support for almost all ui elements, including project list.
2017-05-07Improve documentation of thirdparty code snippetsRémi Verschelde53-46/+382
2017-05-06Doc: Drop unmainted converters for html, textile, dokuwikiRémi Verschelde7-1844/+0
2017-05-06Doc: Remove unused tool translationRémi Verschelde2-142/+0
2017-05-06X11: Abort build if using OpenSSL 1.1.0+Rémi Verschelde1-0/+9
Workaround until #8624 is fixed.
2017-05-06Reworked look and feel of Add Script Dialog.Przemysław Gołąb (n-pigeon)3-147/+387
Untangled a lot of Controls logic code and placed it in one place. Which squashed few bugs and made code easier to maintain.
2017-05-06Spatial Editor: Mouse warping for orbit & freelook modes.Andreas Haas2-10/+18
2017-05-06Fixing previous merger's "not" vs. "!" mistake in C++ (#8664)Will Nations1-3/+3
Also fix typo on the main editor confirmation prompt
2017-05-06Fix bug in pause mode propagationFabio Alessandrelli1-1/+1
Pause mode was not correctly propagating effectively stopping immediately when the mode was not PAUSE_MODE_INHERIT.
2017-05-05Fix template loadingJ08nY3-92/+58
2017-05-05Better explain out of memory error in message queueFabio Alessandrelli1-4/+6
Also effectively saves one unnecessary call when everything is fine.
2017-05-05Fix UDP wait() not returning after first received packetFabio Alessandrelli2-0/+4
2017-05-04Tree: Clear search string on selection.Andreas Haas1-0/+2
The Tree node has the ability to jump to a specific item by typing the first few chars of it's name. But on selection ('item_activated' signal), it didn't clear the search string used for that. It was especially annoying in `FileDialog`s and has been bugging me for ages :P With this, you can traverse a directory structure in a FileDiag quickly with the keyboard (like you'd expect from pretty much any modern file browser) :)
2017-05-04Fix infinite loop in DirAccessPack::get_current_dir()Pedro J. Estébanez1-5/+4
2017-05-04Added 3D freelook navigation modeMarc Gilleron3-123/+122
- Triggered by holding RMB - Can look around in FPS style - Can move with WASD - Movement speed accelerates over time - Can multiply speed with a modifier key to go faster or slower - Configurable in editor settings and shortcuts
2017-05-03LineEdit: fix placeholder text affected by secretPoommetee Ketson1-2/+2
2017-05-02support obj with negative indicesPanPan1-1/+6
2017-05-02Implement cursor style control in HTML5 platformL. Krause2-3/+33
2017-05-01Fix get_shader_type index upper boundCarter Anderson1-1/+1
2017-05-02Implement mouse capture and hiding in HTML5 exportL. Krause2-10/+54
MOUSE_MODE_CONFINED cannot be implemented.
2017-05-02Fix #8617 WindowDialog with custom panel background crashes godotMarc Gilleron1-12/+16
2017-05-01Make script debugger display all kinds of objectsmbalint121-4/+28
2017-05-01Rename project file to "project.godot"Rémi Verschelde11-45/+62
Slimmed down variant from the reverted #8375. The rationale behind the name change is to give Godot's project file a unique extension (".godot") that can be registered on the OS to be associated with the Godot binary (OS registration not implemented here). This PR also adds the possibility to start the game or editor if launched with the project.godot passed as argument, which paves the way for allowing a similar behaviour on a double-click in the OS file manager (code originally by @Hinsbart). Closes #6915.
2017-05-01Make property editor display dictionaries (read only)mbalint121-0/+7
2017-04-30Scene importer: add -rigidonly flag for empties (fixes #8430)Andrea Faulds1-11/+19
2017-04-29Use correct mode for DXT1 textures.Ferenc Arn1-1/+1
libsquish, which is used to generate all S3TC textures, works only with RGBA textures. Fixes #8550.
2017-04-29Fix compilation for UWPGeorge Marques8-50/+161
2017-04-29Revert "Use .godot as file extension for project files."Juan Linietsky7-148/+45
2017-04-29Fix HTML5 key eventsL. Krause1-3/+3
Regression from 86f5ac3
2017-04-28Remove GLUT usage in HTML5 platformL. Krause3-75/+27
2017-04-28Move other lone thirdparty files to thirdparty/miscRémi Verschelde27-16/+90
Also move Box2D ConvexDecomposition contrib code to thirdparty/b2d_convexdecomp.
2017-04-28Split thirdparty smaz.c out of compressed_translation.cppRémi Verschelde5-209/+235
Code comes from https://github.com/antirez/smaz/blob/150e125cbae2e8fd20dd332432776ce13395d4d4/smaz.c With a small modification to match Godot expectations: ``` diff --git a/thirdparty/core/smaz.c b/thirdparty/core/smaz.c index 9b1ebc2..555dfea 100644 --- a/thirdparty/core/smaz.c +++ b/thirdparty/core/smaz.c @@ -14,7 +14,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND #include <string.h> /* Our compression codebook, used for compression */ -static char *Smaz_cb[241] = { +static const char *Smaz_cb[241] = { "\002s,\266", "\003had\232\002leW", "\003on \216", "", "\001yS", "\002ma\255\002li\227", "\003or \260", "", "\002ll\230\003s t\277", "\004fromg\002mel", "", "\003its\332", "\001z\333", "\003ingF", "\001>\336", @@ -89,7 +89,7 @@ static char *Smaz_rcb[254] = { "e, ", " it", "whi", " ma", "ge", "x", "e c", "men", ".com" }; -int smaz_compress(char *in, int inlen, char *out, int outlen) { +int smaz_compress(const char *in, int inlen, char *out, int outlen) { unsigned int h1,h2,h3=0; int verblen = 0, _outlen = outlen; char verb[256], *_out = out; @@ -167,7 +167,7 @@ out: return out-_out; } -int smaz_decompress(char *in, int inlen, char *out, int outlen) { +int smaz_decompress(const char *in, int inlen, char *out, int outlen) { unsigned char *c = (unsigned char*) in; char *_out = out; int _outlen = outlen; @@ -192,7 +192,7 @@ int smaz_decompress(char *in, int inlen, char *out, int outlen) { inlen -= 2+len; } else { /* Codebook entry */ - char *s = Smaz_rcb[*c]; + const char *s = Smaz_rcb[*c]; int len = strlen(s); if (outlen < len) return _outlen+1; diff --git a/thirdparty/core/smaz.h b/thirdparty/core/smaz.h index a547d89..a9d8a33 100644 --- a/thirdparty/core/smaz.h +++ b/thirdparty/core/smaz.h @@ -14,7 +14,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND #ifndef _SMAZ_H #define _SMAZ_H -int smaz_compress(char *in, int inlen, char *out, int outlen); -int smaz_decompress(char *in, int inlen, char *out, int outlen); +int smaz_compress(const char *in, int inlen, char *out, int outlen); +int smaz_decompress(const char *in, int inlen, char *out, int outlen); #endif ```
2017-04-28Move core thirdparty files to thirdparty/{minizip,misc}Rémi Verschelde43-38/+145
2017-04-28Add a few missing copyright headersRémi Verschelde6-4/+179
2017-04-28Detect SSE/SSE2 for libsquish.Ferenc Arn1-0/+6
2017-04-28Fix to use editor theme instead of handling each UIvolzhs5-14/+9
2017-04-28Update editor themevolzhs9-3/+90
2017-04-27AudioServer: Set singleton to NULL when destructedIgnacio Etcheverry1-0/+1
2017-04-27Added recent scripts to script editorPaulb233-0/+101
2017-04-27Fix theme_data.h formatting via make_header.pyRémi Verschelde2-352/+232
Should make clang-format happy.
2017-04-27Add setting to opt-out of capitalization in the property inspectorPedro J. Estébanez5-8/+14
2017-04-27Add new editor and default theme (WIP)Daniel J. Ramirez354-938/+8669
2017-04-26Fix recognition of resource extensions.Andreas Haas2-2/+1
Also removes a related debug print.
2017-04-26Tree: Ability to add tooltips to TreeItem buttons.Andreas Haas4-22/+38
Adds a tooltip parameter to `TreeItem::add_button()` and set a few tooltips in the Project settings and SceneTree dock.
2017-04-26Implement HTML5 touch eventsL. Krause2-206/+109