Thomas Bernard
206c67e77c
move Set_mouse_position() to sdlscreen.c / win32screen.c / etc.
2019-02-05 00:25:59 +01:00
Thomas Bernard
1b43b58fdd
Error report in SDL 1.2.x Win32 Drag&Drop handling
2019-01-25 15:11:29 +01:00
Thomas Bernard
5377b8c9fe
enable to build WIN32CROSS=1 API=sdl2
2019-01-25 15:11:29 +01:00
Thomas Bernard
e2637097fb
X11: handling of keyboard mouse emulation + mouse panning
2019-01-20 22:49:06 +01:00
Thomas Bernard
955ebb5932
move panning/Mouse emulation key handling to Handle_special_key_press() function
2019-01-20 22:48:21 +01:00
Thomas BERNARD
12a775a2b8
explicitely ignore SDL2 SDL_FINGERMOTION / SDL_FINGERDOWN / SDL_FINGERUP
2019-01-04 22:45:07 +01:00
Thomas Bernard
36bd67f197
use XFree() on XGetAtomName() returned strings.
...
Also imporve Doxygen documentation
2019-01-02 01:57:01 +01:00
Thomas Bernard
3e1d6b165d
Copy support for X11
2019-01-02 01:27:27 +01:00
Thomas Bernard
7331ad9bdf
X11 picture paste support (PNG format)
...
works with what GIMP puts in the X11 CLIPBOARD
2018-12-30 10:20:50 +01:00
Thomas Bernard
a68343d2ad
X11 : fix crash in Handle_SelectionNotify() when Clipboard cannot be converted to UTF8_STRING
2018-12-29 15:57:27 +01:00
Thomas Bernard
b706566f57
WIN32: get Unicode filename of Dropped files
2018-12-18 17:52:28 +01:00
Thomas Bernard
18d35f5bf0
Win32+SDL : consider ALT as not pressed when gaining back keyboard focus
...
see https://pulkomandy.tk/projects/GrafX2/ticket/63
2018-09-21 09:17:50 +02:00
Thomas Bernard
2c9b1b7bb1
X11: properly ignore Shift/ctrl/alt/win keystrokes alone
2018-09-16 22:02:03 +02:00
Thomas BERNARD
7cf404904c
X11: build when GenericEvent is not defined
2018-09-14 17:22:02 +02:00
Thomas Bernard
88430bb92f
Add NO_X11 option at compiletime to disable X11 specific stuff with SDL driver
...
just compile with
$ NO_X11=1 make
2018-07-20 12:26:52 +02:00
Thomas Bernard
146694d3c1
SDL_DROPTEXT, SDL_DROPBEGIN, and SDL_DROPCOMPLETE are available since SDL 2.0.5.
2018-07-17 01:09:04 +02:00
Thomas Bernard
d7c6193c21
SDL/x11 : make Copy/Paste and Drag&Drop work
2018-07-17 01:09:04 +02:00
Thomas Bernard
0843bd6a3c
use SDL2 Drop Event when available
...
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-17 01:09:04 +02:00
Thomas Bernard
4978a7cfe2
convert Warning() and DEBUG() to GFX2_Log()
2018-07-12 20:41:49 +02:00
Thomas Bernard
7fb77f85f1
Add GFX2_Log() function
2018-07-12 19:11:39 +02:00
Thomas Bernard
d0ac732d8e
X11: fix for Mac OS X
2018-07-04 16:00:01 +02:00
Thomas Bernard
e29b97ffe2
X11: decode URI in drag&drop
2018-07-04 01:30:31 +02:00
Thomas Bernard
2a15d5f720
X11: fix drag&drop
2018-07-04 01:08:49 +02:00
Thomas Bernard
1d023c49e2
X11: open window on its previous position
...
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-04 01:05:32 +02:00
Thomas Bernard
80f2f681b3
remove leftover printf
...
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-03 14:47:52 +02:00
Thomas Bernard
b67e264026
Implementation of X11 pasting
2018-07-03 12:28:13 +02:00
Thomas Bernard
0d3ab36291
Drag&Drop implementation for X11
...
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-03 12:28:13 +02:00
Thomas Bernard
d5bd599461
X11: handle window resize and close
2018-07-02 11:38:52 +02:00
Thomas Bernard
e704ae45be
X11: handle Keypad input correctly
2018-07-02 11:38:52 +02:00
Thomas Bernard
77f36a1f8e
x11 implementation
2018-07-02 11:38:51 +02:00
Thomas Bernard
53aa22263f
Allow SDL2 window to be resized
2018-07-02 11:38:51 +02:00
Thomas Bernard
01c6a9cd09
Fix Drop file with SDL/Win32. implement it with plain win32
...
we have to handle both unicode and non unicode builds
2018-07-02 11:38:51 +02:00
Thomas Bernard
af25970c09
Fix Joystick support (with SDL and SDL2)
2018-07-02 11:38:51 +02:00
Thomas Bernard
eb65d1006a
win32: avoid taking 100% CPU time
2018-07-02 11:38:51 +02:00
Thomas Bernard
deac8b83cf
keyboard support for windows
2018-07-02 11:38:51 +02:00
Thomas Bernard
9ac4267468
Working win32 API implementation with mouse
...
(no keyboard yet)
2018-07-02 11:38:51 +02:00
Thomas Bernard
aa73e76e67
SDL2: readline.c uses SDL_TEXTINPUT unicode input text
2018-07-02 11:38:51 +02:00
Thomas Bernard
501ce2a4ad
Make keyboard event work with SDL2
2018-07-02 11:38:51 +02:00
Thomas Bernard
22e0bcc01f
introduce GFX2_UpdateScreen()
2018-07-02 11:38:51 +02:00
Thomas Bernard
bf29a6837c
remove references to SDL_GetModState();
...
changed
word Key_modifiers(SDLMod mod);
to
word Get_Key_modifiers(void);
2018-07-02 11:38:51 +02:00
Thomas Bernard
3e4f3d0313
WIP. build under Win32 without SDL
2018-07-02 11:38:51 +02:00
Thomas Bernard
4d86b8a0c1
change all references to SDLK_xxxxx to KEY_xxxx
...
+ some fixes
2018-07-02 11:38:51 +02:00
Thomas Bernard
77005eb780
use screen.h instead of sdlscreen.h, etc.
...
Create grafx2-win32 MSVC++ project
create keycode.h
various fixes
2018-07-02 11:38:51 +02:00
Thomas Bernard
d86efa58e4
Compilation with SDL2 (to be finalized) > API=sdl2 make
2018-07-02 11:38:51 +02:00
Thomas Bernard
fb51c1bb1c
SDL_GetTicks() => GFX2_GetTicks()
...
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-02 11:38:51 +02:00
Thomas Bernard
72fea0290f
isolate dependencies to SDL
...
Do not access directly the SDL_Surface Screen_pixels
use new functions Get_Screen_pixel_ptr() Set_Screen_pixel(),
Get_Screen_pixel()
And SetPalette()
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-02 11:38:51 +02:00
Thomas Bernard
92facef46d
Convert comments to UTF-8
...
most were encoded in Latin1 / CP1252
but a few lines in op_c.c were using IBM437/850 !
2018-06-26 11:37:19 +02:00
Thomas Bernard
144d10b682
Support Unicode Keyboard Input
2018-02-20 15:44:39 +01:00
Thomas Bernard
297b653304
input.c: Simplify code in Color_cycling()
2018-01-22 16:31:23 +01:00
Thomas Bernard
a53d6da6ea
Add visible_image and backups to the T_Document structure
2018-01-22 16:16:39 +01:00