aboutsummaryrefslogtreecommitdiff
path: root/platform/windows/os_windows.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Added constant to retrieve Windows' Documents pathFranco Eusébio Garcia2016-02-071-1/+1
| | | | | | | | | | | | | | According to MSDN's documentation (https://msdn.microsoft.com/en-us/library/windows/desktop/bb762181(v=vs.85).aspx), CSIDL_PERSONAL represents the default path to Windows Document's folder: "Previous to Version 6.0. The file system directory used to physically store a user's common repository of documents. A typical path is C:\Documents and Settings\username\My Documents. This should be distinguished from the virtual My Documents folder in the namespace. To access that virtual folder, use SHGetFolderLocation, which returns the ITEMIDLIST for the virtual location, or refer to the technique described in Managing the File System."
* support horizontal mouse wheel, use in text editorhondres2016-02-041-2/+19
|
* remove pc_joystick_map.hhondres2016-02-011-1/+0
|
* Change default window size for desktopGeorge Marques2016-01-241-1/+1
| | | | Fix #3149
* Merge pull request #3272 from Hinsbart/joy-bindingpunto-2016-01-121-0/+7
|\ | | | | Add some joystick functions to input. Enables manipulation of mapping…
| * Add some joystick functions to input. Enables manipulation of mappings at ↵hondres2016-01-081-0/+7
| | | | | | | | runtime
* | Merge pull request #3230 from touilleMan/issue-55Rémi Verschelde2016-01-111-2/+1
|\ \ | | | | | | Remove unnecessary null pointer checks
| * | Remove unnecessary null pointer checksEmmanuel Leblond2016-01-041-2/+1
| |/
* / -Removed OS.get_system_time_msec(), this is undoable on Windows and also ↵Juan Linietsky2016-01-101-2/+8
|/ | | | | | unusable from GDscript due to precision. -Added, instead an OS.get_system_time_secs(), which is 32 bits friendly, fixes #3143
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* Better gamepad supporthondres2015-12-181-260/+8
|
* -added windowed mode with -w, fixes #3020Juan Linietsky2015-12-121-1/+1
| | | | -changed default windowed resolution to 1280x720
* Added missing \n in script error output.ZuBsPaCe2015-11-191-1/+1
|
* Nice error output padding. Code location behind " At: " is now aligned with ↵ZuBsPaCe2015-11-191-9/+17
| | | | the error message above. Also removed the dot after the file location.
* Set console background color on windows in SetConsoleTextAttribute, ↵ZuBsPaCe2015-11-191-5/+8
| | | | otherwise text background will be black, which looks strange if the terminal color is not black.
* Set output color of ERR_SCRIPT messages to purple. Same as on linux.ZuBsPaCe2015-11-191-1/+1
|
* Removed ANSI error codes from windows terminal error output. Windows does ↵ZuBsPaCe2015-11-191-6/+6
| | | | | | | not support them. See: http://stackoverflow.com/questions/16755142/how-to-make-win32-console-recognize-ansi-vt100-escape-sequences See: http://stackoverflow.com/questions/22777142/is-there-a-way-to-make-windows-output-ansi-escape-sequences?lq=1
* Inconsistent code formatting in print_error (Newlines and spaces)ZuBsPaCe2015-11-191-36/+37
|
* Merge pull request #2718 from SaracenOne/audio_system_crash_fixJuan Linietsky2015-11-181-1/+2
|\ | | | | Fixed Audio System Crash
| * Moved deleting sample player in OS finalize methods to before deleting audio ↵Saracen2015-11-021-1/+2
| | | | | | | | server to prevent crash when exiting.
* | Merge pull request #2737 from akien-mga/type-specific-error-outputJuan Linietsky2015-11-181-7/+18
|\ \ | | | | | | Display error type (error, warning, script error) in OS::print_error + cleanup error ANSI coloring
| * | Fix error messages forcing a white font for subsequent messagesRémi Verschelde2015-11-101-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | This is achieved using the "no specific formatting" \E[0m tag. Fixes #2566. Also remove the hardcoded black background colour and use default bolded terminal font for error message. Error logs should now look good both on terminals with a dark and light background colour.
| * | Display error type (error, warning, script error) in OS::print_errorRémi Verschelde2015-11-101-7/+18
| |/ | | | | | | | | | | Previously all types of errors would be shown as ERROR, thus making for example warnings (WARN_PRINT) somewhat aggressive. ERROR is displayed in red, WARNING in yellow and SCRIPT ERROR in magenta (though the latter does not seem used so far). Fixes #1127.
* / windows crash and bind placeholder methodAriel Manzur2015-11-141-3/+3
|/
* Added ability to set custom mouse cursors. Not hardware accelerated yet.Juan Linietsky2015-09-241-0/+10
|
* Add OS.get_system_time_msecMaximillian2015-08-061-0/+6
|
* Complete fix for windows compilabilityest312015-06-071-1/+2
| | | | Thanks @volzhs for testing :)
* Fix windows compilabilityest312015-06-071-17/+4
|
* Add OS.get_time_zone_info functionest312015-06-061-0/+30
| | | | | | The returned dictionary maps "name" to the name of the current time zone, and "bias" to a bias from UTC in minutes.
* Add utc param to get_time and get_date methodsest312015-06-061-4/+10
| | | | | | If utc == false, we return the local time, like before. Otherwise, we return UTC time. utc defaults to false to not break behaviour.
* Use local time for both time and date on winest312015-06-061-1/+1
| | | | On unix and nacl, both date and time are expressed in local time.
* ability to run 2D physics in a threadJuan Linietsky2015-05-261-2/+5
| | | | | also, 2D physics is now thread safe too. see physics_2d/thread_model
* Merge remote-tracking branch 'origin/master'Juan Linietsky2015-05-041-1/+8
|\ | | | | | | | | Conflicts: drivers/windows/dir_access_windows.cpp
| * add missing WM_RBUTTONDBLCLK messagesanikoyes2015-03-251-1/+8
| |
* | small unicode fixesJuan Linietsky2015-05-041-5/+6
|/
* window managements functions workJuan Linietsky2015-03-231-19/+100
| | | | but still side-functions, all API needs to be migrated to them
* fixes to new window management APIJuan Linietsky2015-03-221-0/+188
| | | | | | -needs testing on Linux -needs testing on Windows -NEED SOMEONE TO IMPLEMENT IT ON OSX!! PLEASE HELP!
* New option to send canvas to render bufferJuan Linietsky2015-03-161-0/+1
| | | | | allows to use 3D environment effects for post processing such as Glow, Bloom, HDR, etc. in 2D.
* fix get joystick name from registry on some systemsHinsbart2015-02-251-3/+8
|
* begin new serialization frameworkJuan Linietsky2015-02-151-1/+0
| | | | also got rid of STL dependency on triangulator
* fixes to mouse warpJuan Linietsky2015-02-141-1/+6
| | | | | | | | | -can warp now from viewport and control, in their respective coordinate systems -warp is now local to the window on Windows and OSX. IF YOU RUN OSX, PLEASE TEST THIS! And make sure it works!, new code is in OS_OSX::warp_mouse_pos. I don't have OSX so i can't test!
* fix get_joy_name() on windowsHinsbart2015-02-121-1/+51
|
* Merge pull request #1259 from laganojunior/feature/fix_modifier_key_unpressJuan Linietsky2015-02-091-3/+4
|\ | | | | Modifiers are unset on events for the modifier key itself
| * Fix whitespace on previous commitManuel Lagang2015-01-171-1/+1
| | | | | | | | Choose tabs or spaces, not both!
| * Modifiers are unset on events for the modifier key itselfManuel Lagang2015-01-171-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes modifiers when processing key events for the particular modifier key. For example, previously a Shift keypress would register as a Shift + Shift modifier event. This would cause issues when a modifier key as the action key in the input map, because unpresses of the modifier key don't match as matching inputs for that action. E.g. if Shift is used as an action, the stored action event is Shift + Shift modifier (as indicated in the editor as "Shift + Shift". The unpress event does not have the Shift modifier set, so the event of unpressing Shift + no modifier doesn't match the action which has the modifier set. This patch removes the shift modifier on just pressing the Shift key down, so the action event is registered as just Shift with no modifier (as indicated in the editor as "Shift"), which matches the unpress event.
* | Fix mingw windows build errormarynate2015-01-181-0/+4
|/
* added nvidia optimus enablementthe_mech2015-01-171-0/+3
|
* -Initial (untested) implementation of 2D shaders. Probably broken, will be ↵Juan Linietsky2015-01-111-1/+1
| | | | | | fixed later. -fixed issue of opacity not working
* 2D Rewrite Step [1]Juan Linietsky2015-01-101-3/+3
| | | | | | | | -=-=-=-=-=-=-=-=-=- -Moved drawing code to a single function that takes linked list (should make it easier to optimize in the future). -Implemented Z ordering of 2D nodes. Node2D and those that inherit have a visibility/Z property that affects drawing order (besides the tree order) -Removed OpenGL ES 1.x support. Good riddance!
* New Code CompletionJuan Linietsky2014-12-161-1/+2
| | | | | | | | | | | | -=-=-=-=-=-=-=-=-=- -Massive improvement to code completion -Argument hinting for functions If you manage to out-smart the code-completion in a situation where completion should be possible to guess, let me know. Please enter the commit message for your changes. Lines starting