Rémi Verschelde
5b27f05e7e
Fix console output for MinGW compilers
...
Reworked patch from @jay3d (#7116 ).
(cherry picked from commit f28ff8a208
)
2017-01-12 19:15:27 +01:00
Fabio Alessandrelli
00fdcf3cd0
IP_Address now handle IPv4 and IPv6 transparently
...
IP_Address changes:
- Converts to and from String transparently while handling IPv4 as IPv6
mapped (::ffff:[IP]) address internally.
- Completely remove AddrType enum.
- Setting/Getting of ip array is now only possible through dedicated functions
(ie. set_ipv4, get_ipv4, set_ipv6, get_ipv6)
- Add function to know if the address is a valid IPv4 (for IP implementation and enet)
(cherry picked from commit 1aff508dd9
)
2017-01-04 00:46:33 +01:00
Fabio Alessandrelli
e8a6cbc897
Migrate int.IP_TYPE_ constants to IP.TYPE_
...
(cherry picked from commit c18c5013f8
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
47ae6c6507
Move V6ONLY flag selection inside helpers
...
(cherry picked from commit 4d90a4fcd5
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
5e79ac72b7
Automatically map IPv4 address to IPv6 when needed
...
(cherry picked from commit 9200da58e4
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
a46a643f90
Use an instance variable for ip_type in raw sockets
...
PacketPeerUDP/StreamPeerTCP/TCP_Server now uses an instance variable
to store the selected ip_type (IPv4/IPv6/ANY, where ANY = dual stack).
All calls to resolve addresses, sending/receving data, connecting/listening
will use that socket type.
(cherry picked from commit 95bdd97768
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
c030e602e5
Properly handle tcp connection failure
...
(cherry picked from commit 4f07b595a1
)
2017-01-04 00:46:32 +01:00
Fabio Alessandrelli
1a7f14b206
[IPv6] Fix windows build script (link to ws2_32)
2016-12-11 18:12:46 +01:00
Fabio Alessandrelli
754e9aa60a
TCP/UDP Listen sockets can now be set to IPv6 only
...
(cherry picked from commit eb27e993f0
)
2016-12-11 18:12:46 +01:00
Fabio Alessandrelli
70a6791150
Fix windows debugger connection problems.
...
Unify network socket creation between platform.
Ensure IPV6_V6ONLY flag is not set on sockets (allow IPv4 connection in IPv6 socket, dual-stack).
(cherry picked from commit 812908e236
)
2016-12-11 18:12:45 +01:00
Fabio Alessandrelli
6e0de0cce8
TCPServer listen now default to IP type ANY (v6 socket with v4 support)
...
(cherry picked from commit ee69bd81cf
)
2016-12-11 18:12:45 +01:00
Fabio Alessandrelli
04def2161e
Fix PacketPeerUDP get_packet_port()
...
Properly convert port field from network to system ordering on incoming packets.
(cherry picked from commit 25e29972a9
)
2016-12-11 18:12:45 +01:00
Fabio Alessandrelli
b3443fd848
Pass correct address size (ipv4,ipv6) to socket connect, bind, sendto
...
The address size passed to network system calls now reflects the the actual IP type (v4 or v6).
Fix Windows and OSX ipv6 sockets
(cherry picked from commit 80e911647c
)
2016-12-11 12:35:06 +01:00
Ariel Manzur
d8b0070b8c
added windows support for ipv6, cleaned up unix code
...
(cherry picked from commit 672225b710
)
2016-12-11 12:35:06 +01:00
ISylvox
0413d85add
vsnc --> vsync
...
(cherry picked from commit b5c383fd61
)
2016-11-15 08:34:43 +01:00
Rémi Verschelde
ce54b6ea8b
scons: Reorder options for clarity
...
Also prefix all thirdparty-related toggles with `builtin`.
(cherry picked from commit cc95d4448c
)
2016-11-03 08:41:10 +01:00
Rémi Verschelde
eaf803f71e
style: Various other PEP8 fixes in Python files
...
Done with `autopep8 --select=E7`, fixes:
- E701 - Put colon-separated compound statement on separate lines.
- E702 - Put semicolon-separated compound statement on separate lines.
- E703 - Put semicolon-separated compound statement on separate lines.
- E711 - Fix comparison with None.
- E712 - Fix (trivial case of) comparison with boolean.
- E713 - Fix (trivial case of) non-membership check.
- E721 - Fix various deprecated code (via lib2to3).
2016-11-02 22:30:34 +01:00
Rémi Verschelde
a7389217f8
style: Fix PEP8 blank lines issues in Python files
...
Done with `autopep8 --select=E3,W3`, fixes:
- E301 - Add missing blank line.
- E302 - Add missing 2 blank lines.
- E303 - Remove extra blank lines.
- E304 - Remove blank line following function decorator.
- E309 - Add missing blank line.
- W391 - Remove trailing blank lines.
2016-11-02 22:29:36 +01:00
Rémi Verschelde
e259bf8bbb
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-02 22:28:28 +01:00
Rémi Verschelde
561c1f17a1
style: Start applying PEP8 to Python files, indentation issues
...
Done with `autopep8 --select=E1`, fixes:
- E101 - Reindent all lines.
- E112 - Fix under-indented comments.
- E113 - Fix over-indented comments.
- E115 - Fix under-indented comments.
- E116 - Fix over-indented comments.
- E121 - Fix a badly indented line.
- E122 - Fix a badly indented line.
- E123 - Fix a badly indented line.
- E124 - Fix a badly indented line.
- E125 - Fix indentation undistinguish from the next logical line.
- E126 - Fix a badly indented line.
- E127 - Fix a badly indented line.
- E128 - Fix a badly indented line.
- E129 - Fix a badly indented line.
2016-11-02 22:26:55 +01:00
George Marques
52bf8bd168
Fix the hiding of mouse cursor before interaction
...
Fix part of #6633
(cherry picked from commit 414d58e6c0
)
2016-10-30 23:58:32 +01:00
Rémi Verschelde
5a49e45d21
SCsub: Add python shebang as a hint for syntax highlighting
...
Also switch existing shebangs to "better" /usr/bin/env python.
(cherry picked from commit fc8ccd5b8c
)
2016-10-30 14:51:34 +01:00
Błażej Szczygieł
7143401e25
Theora: Don't compile unnecessary files, rename "x86_opt_*"
...
(cherry picked from commit 4ffa8f224d
)
2016-10-30 14:51:34 +01:00
Rémi Verschelde
f1bd2f6f56
zlib: Split thirdparty files, simplify scons option
...
(cherry picked from commit cbf52606f4
)
2016-10-30 14:51:33 +01:00
Rémi Verschelde
e04ec9565b
glew: Split thirdparty files and isolate env
...
Not fully happy about the way this one interacts with the various
platforms. Maybe the platform_config.h should be generated by the
SCsub instead of passing a define just to know where is the header.
(cherry picked from commit 36738ddda4
)
2016-10-30 14:51:33 +01:00
Rémi Verschelde
846db09038
Drop nedmalloc which is apparently not used anymore
...
(cherry picked from commit f63bf12193
)
2016-10-30 14:51:30 +01:00
Pedro J. Estébanez
12d4d65668
Improve debug focus behavior
...
Fix focusing debugged game on Windows
Add re-focusing editor on continue
(cherry picked from commit 66dac878ac
)
2016-10-09 17:29:59 +02:00
Marc Gilleron
268b3446c6
Windows: prevent huge prints from crashing the engine
...
(cherry picked from commit 0c09de3ef1
)
2016-10-09 17:23:08 +02:00
Mario Schlack
9ea76ff46d
Hide the mouse cursor when MOUSE_MODE_CAPTURED is activated.
...
(cherry picked from commit f0b6a242cc
)
2016-09-01 08:46:03 +02:00
George Marques
0bc589a0c7
Fix Windows resource script
2016-07-27 15:35:49 -03:00
George Marques
b48fd16add
Improve Windows application details
2016-07-27 12:37:12 -03:00
Rémi Verschelde
fd659e869b
Windows: Make alert message box use MB_TASKMODAL
...
This flag pauses the current running thread, allowing for the user to see the
alert and acknowledge it before the thread continues (and e.g. crashes :)).
Thanks to @SuperUserNameMan for finding it.
Ref: https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx
2016-07-26 15:16:45 +02:00
George Marques
7be70c5a3c
Avoid changing position when the window is fullscreen
2016-07-24 12:07:59 -03:00
Rémi Verschelde
b623acb718
Merge pull request #5841 from vnen/fix-windows-wheel
...
Fix mouse wheel event position on Windows
2016-07-21 17:31:24 +02:00
Rémi Verschelde
d723e5a62f
Merge pull request #5560 from vnen/os-request-attention
...
Add OS.request_attention() for Windows
2016-07-21 17:29:45 +02:00
George Marques
f4c0bc20c3
Fix mouse wheel event position on Windows
2016-07-21 12:14:25 -03:00
Rémi Verschelde
523e46ad0a
Revert "Make editor compatible with Windows high contrast themes"
...
This reverts commit 85a5290ee8
.
The patch itself is good and it could maybe be readded in the future,
but right now Microsoft forced its Windows 10 "update" on people with older
Intel HD Graphics 3000 IGP without ensuring that they can ship proper drivers,
and such users seem to get Godot crashing due to this patch. Sorry :(
Closes #5452 .
2016-07-18 00:24:21 +02:00
Juan Linietsky
28641fd9b8
Merge pull request #5525 from SuperUserNameMan/window_get_latin_kb_variant
...
windows get_latin_keyboard_variant() implementation and gdscript binding, #5503
2016-07-10 12:41:05 -03:00
George Marques
5c355a63d3
Add OS.request_attention() for Windows
2016-07-05 12:29:08 -03:00
SuperUserNameMan
7a142780f0
windows get_latin_keyboard_variant() implementation and gdscript binding
2016-07-03 19:35:13 +02:00
Andreas Haas
6856c52491
Windows: prevent freeze while moving or resizing the game window.
...
When moving or resizing the window, Windows spins up a seperate event-loop, effectively blocking the normal one.
To work around this, we're starting a timer that will continue sending WM_TIMER messages which we can use to keep the mainloop running.
fixes #4695
2016-07-01 16:55:53 +02:00
SuperUserNameMan
2511f48339
fixes #5464 windows_joystick close_joystick bug
2016-06-29 23:00:45 +02:00
George Marques
bf44275b1a
Fix visual server error when minimizing the window
2016-06-26 18:54:34 -03:00
Rémi Verschelde
0a72f9ccb8
Merge pull request #5362 from J08nY/png
...
libpng: New version 1.6.27
2016-06-23 07:40:03 +02:00
Pedro J. Estébanez
85a5290ee8
Make editor compatible with Windows high contrast themes
...
By providing a manifest specifying the targeted Windows versions (as per https://msdn.microsoft.com/en-us/library/windows/desktop/hh404233(v=vs.85).aspx#_______supporting_high_contrast_themes_in_windows_8_and_later ) now the Godot editor renders normally under a high contrast theme on Windows, instead of staying white/black.
2016-06-23 00:14:15 +02:00
J08nY
0ab05b09e4
Fixed iCCp chunk in pngs
...
neccesary for libpng 1.6.27 to work silently
2016-06-22 21:13:29 +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
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
Juan Linietsky
fc7adf0b4c
property output unix seconds since epoch in windows get_system_time_secs, fixes #5155
2016-06-11 14:10:11 -03:00