irixxxx [Fri, 16 May 2025 15:16:46 +0000 (17:16 +0200)]
Merge pull request #3 from notaz/sdl_gl
fixes for pcsx
notaz [Thu, 15 May 2025 22:59:46 +0000 (01:59 +0300)]
in_sdl: implement the actual update_analog
notaz [Thu, 15 May 2025 22:26:12 +0000 (01:26 +0300)]
input: introduce in_update_pointer
update_analog is meant for reading analog axes, so new function is
needed for what's implemented in in_sdl.
notaz [Wed, 14 May 2025 16:44:58 +0000 (19:44 +0300)]
gl: update
- more error checking
- add a workaround for mesa compiled without OpenGL ES1.x (but with egl)
- don't leave half-initialized state (and just a black screen) on error
- clear texture memory, otherwise edges sometimes pick up noise from
filtering taking garbage texels behind the edges
- allow to pass vertices to flip
- new clear function
notaz [Mon, 12 May 2025 20:14:19 +0000 (23:14 +0300)]
sdl: update window handle on mode change
At least on sdl12-compat info.x11.window changes after calling
SDL_SetVideoMode() and gl init fails with the old one.
notaz [Mon, 12 May 2025 20:08:24 +0000 (23:08 +0300)]
sdl: use correct SetVideoMode flags on init
- avoids flicker from recreating the window on startup
- resizable window from the beginning
- SDL_SWSURFACE fallback should actually work
maybe will also help notaz/libpicofe#4
irixxxx [Mon, 5 May 2025 20:54:04 +0000 (22:54 +0200)]
Merge pull request #2 from notaz/irixxxx
sync with my tree, make overlay2x kludge explicit
notaz [Sun, 4 May 2025 15:50:10 +0000 (18:50 +0300)]
make overlay2x kludge controllable through an explicit var
640 width doesn't suit pcsx_rearmed as it's one of widths PSX supports.
Note that PicoDrive will need to be updated to set the new variable as needed.
notaz [Sun, 4 May 2025 15:47:32 +0000 (18:47 +0300)]
don't pretend SDL_REDRAW_EVT can be disabled
in_sdl_update_analog() relies on it
notaz [Sun, 1 Oct 2023 22:27:58 +0000 (01:27 +0300)]
plat: add a thp-based huge page fallback
unlike MAP_HUGETLB it's often enabled in distros by default
notaz [Sun, 7 Jan 2024 17:53:01 +0000 (19:53 +0200)]
gl: clear w, h on reinit
otherwise gl_flip() doesn't update texture[] in pcsx's fullscreen toggle
or window resize
notaz [Mon, 28 Aug 2023 20:30:40 +0000 (23:30 +0300)]
input: fix a leak
Matheus Garcia [Sat, 21 Oct 2023 15:56:56 +0000 (15:56 +0000)]
Compatibility with FreeBSD
kub [Mon, 31 Mar 2025 18:39:05 +0000 (20:39 +0200)]
Revert
86a086e "automatically map input devs of same type to different players"
misunderstanding of the API's intentions
kub [Thu, 27 Feb 2025 22:15:23 +0000 (23:15 +0100)]
add relative mouse movement
kub [Wed, 26 Feb 2025 22:38:10 +0000 (23:38 +0100)]
improve forced window resizing
kub [Mon, 24 Feb 2025 22:39:08 +0000 (23:39 +0100)]
add mouse support to sdl
kub [Sat, 15 Feb 2025 16:24:00 +0000 (17:24 +0100)]
add forced window resizing
kub [Wed, 12 Feb 2025 18:23:52 +0000 (19:23 +0100)]
add expose event to redraw handling
kub [Sun, 9 Feb 2025 18:45:33 +0000 (19:45 +0100)]
fix multiple redraw events (only handle last one)
kub [Tue, 21 Jan 2025 21:23:53 +0000 (22:23 +0100)]
changes for PicoDrive virtual keyboard
kub [Tue, 21 Jan 2025 21:22:08 +0000 (22:22 +0100)]
optimize keyboard readout
kub [Wed, 15 Jan 2025 21:29:21 +0000 (22:29 +0100)]
fixes for keyboard support fallout
kub [Wed, 15 Jan 2025 19:14:59 +0000 (20:14 +0100)]
keyboard unbinding
kub [Mon, 13 Jan 2025 22:56:58 +0000 (23:56 +0100)]
generalise keyboard support
kub [Thu, 9 Jan 2025 22:57:17 +0000 (23:57 +0100)]
add pitched writepng function
kub [Thu, 9 Jan 2025 22:55:10 +0000 (23:55 +0100)]
compile fix for windows mingw
kub [Thu, 9 Jan 2025 22:52:53 +0000 (23:52 +0100)]
more keyboard support
qufb [Sun, 26 Jun 2022 14:14:38 +0000 (15:14 +0100)]
add support for Pico Keyboard
kub [Sun, 13 Oct 2024 18:04:56 +0000 (20:04 +0200)]
automatically map input devs of same type to different players
kub [Tue, 10 Sep 2024 20:30:54 +0000 (22:30 +0200)]
better support for resizable windows
kub [Tue, 10 Sep 2024 20:28:51 +0000 (22:28 +0200)]
fix repeated redraw events
kub [Thu, 5 Sep 2024 20:00:30 +0000 (22:00 +0200)]
fix some warnings
kub [Mon, 25 Mar 2024 23:56:33 +0000 (00:56 +0100)]
fix pngread error handling
kub [Wed, 20 Mar 2024 22:40:37 +0000 (23:40 +0100)]
add reading scaled png images
kub [Sat, 17 Feb 2024 18:32:30 +0000 (19:32 +0100)]
make sound rates platform dependent
kub [Wed, 14 Feb 2024 22:23:50 +0000 (23:23 +0100)]
fix event handling regression
kub [Wed, 14 Feb 2024 22:00:45 +0000 (23:00 +0100)]
add .. to dir listing if it is missing
kub [Wed, 14 Feb 2024 21:26:18 +0000 (22:26 +0100)]
fix BGR/RGB handling
Francisco Javier Trujillo Mata [Sat, 30 Dec 2023 20:53:41 +0000 (21:53 +0100)]
Using PSP as posix
kub [Thu, 14 Dec 2023 21:13:01 +0000 (22:13 +0100)]
improve redraw events handling
kub [Sun, 3 Dec 2023 19:41:56 +0000 (20:41 +0100)]
revert parts of
e0bf7946 to allow multiple keys in parallel
kub [Thu, 23 Nov 2023 20:56:44 +0000 (20:56 +0000)]
revisit file selector
- display help
- add draw callback for window resizing
- fix small memory leak
kub [Wed, 15 Nov 2023 20:26:05 +0000 (20:26 +0000)]
fix crash if file list is empty in romsel
kub [Sun, 29 Jan 2023 19:37:03 +0000 (19:37 +0000)]
Merge remote-tracking branch 'notaz/master'
kub [Thu, 26 Jan 2023 21:00:48 +0000 (21:00 +0000)]
fix menu key handling in file selector
kub [Wed, 25 Jan 2023 22:09:22 +0000 (22:09 +0000)]
fix hang if seeking for letter in file selector
kub [Thu, 29 Sep 2022 23:13:49 +0000 (23:13 +0000)]
enable use of current pspdev sdk
kub [Wed, 28 Sep 2022 18:55:29 +0000 (18:55 +0000)]
fix sdl overlay not locked for clearing
kub [Fri, 16 Sep 2022 20:06:24 +0000 (20:06 +0000)]
fix off-by-1 in directory listing search
kub [Fri, 16 Sep 2022 17:08:34 +0000 (17:08 +0000)]
add some support for handling redraw events
kub [Fri, 16 Sep 2022 17:07:14 +0000 (17:07 +0000)]
make gl layer reinitializable
notaz [Sat, 10 Sep 2022 13:57:39 +0000 (16:57 +0300)]
Merge branch 'irixxxx'
notaz [Sun, 13 Mar 2022 23:17:09 +0000 (01:17 +0200)]
fbdev: wait vsync after mode change, not before
As it was before we were getting a full frame scanout of the old mode,
while the emu (or whatever) was already writing a frame in new mode.
first_write_to_front is a hack for psx.
notaz [Sun, 13 Mar 2022 23:15:51 +0000 (01:15 +0200)]
fbdev: don't clear more than needed
it wastes time for something like psx that may change modes ingame
kub [Sun, 6 Mar 2022 18:25:56 +0000 (18:25 +0000)]
fix regression selecting SDL window size (for hw scaling)
kub [Fri, 4 Mar 2022 19:39:44 +0000 (19:39 +0000)]
fix a buffer overflow
kub [Fri, 4 Mar 2022 19:38:41 +0000 (19:38 +0000)]
reduce SDL_Setvideo calls to avoid flickering with TRIPLEBUF
kub [Fri, 4 Mar 2022 19:37:27 +0000 (19:37 +0000)]
add basic fullscreen support to SDL window mode
notaz [Tue, 1 Mar 2022 20:10:12 +0000 (22:10 +0200)]
Merge pull request #11 from jSTE0/overlay-lock
sdl: lock YUV overlay before clearing
jSTE0 [Mon, 28 Feb 2022 23:00:22 +0000 (23:00 +0000)]
sdl: lock YUV overlay before clearing
The pixels pointer is not valid otherwise and leads to a segfault.
kub [Tue, 22 Feb 2022 20:43:51 +0000 (20:43 +0000)]
add aspect ratio for sdl fullscreen
kub [Tue, 22 Feb 2022 20:52:01 +0000 (20:52 +0000)]
some disassembler fixes
kub [Tue, 22 Feb 2022 20:49:37 +0000 (20:49 +0000)]
fix skin directory default
kub [Tue, 22 Feb 2022 20:55:19 +0000 (20:55 +0000)]
fix for 4 player support
kub [Fri, 26 Mar 2021 21:45:04 +0000 (22:45 +0100)]
fix display of menu strings containing '%'
kub [Wed, 26 Jan 2022 19:36:32 +0000 (19:36 +0000)]
add support for 4 player inputs
kub [Fri, 26 Mar 2021 19:06:43 +0000 (20:06 +0100)]
fix position of menu entries if length > 10
kub [Fri, 26 Mar 2021 18:57:58 +0000 (19:57 +0100)]
fix type usage for endianess in menu handling
kub [Mon, 22 Mar 2021 22:07:02 +0000 (23:07 +0100)]
add minimal osx/ios compilastion support
kub [Mon, 22 Mar 2021 22:04:12 +0000 (23:04 +0100)]
add SDL SWSURFACE support
kub [Tue, 23 Feb 2021 22:23:32 +0000 (23:23 +0100)]
use native byte order for audio
kub [Mon, 8 Feb 2021 19:51:34 +0000 (20:51 +0100)]
center loaded background image in larger screen
notaz [Sun, 14 Nov 2021 21:37:17 +0000 (23:37 +0200)]
avoid a warning
notaz [Sun, 31 Oct 2021 15:16:02 +0000 (17:16 +0200)]
sdl: don't try gl on remote displays
notaz [Sun, 31 Oct 2021 14:36:36 +0000 (16:36 +0200)]
sdl: set initial pitch
notaz [Sun, 31 Oct 2021 14:33:02 +0000 (16:33 +0200)]
allow to opt out of HOME config path
pcsx_rearmed never used it so keep it this way there.
notaz [Mon, 18 Jan 2021 17:12:19 +0000 (19:12 +0200)]
Merge pull request #10 from irixxxx/master
improved directory handling for menu, basic PSP support
kub [Thu, 14 Jan 2021 20:57:13 +0000 (21:57 +0100)]
add minimal PSP support
kub [Thu, 14 Jan 2021 20:56:30 +0000 (21:56 +0100)]
improve directory handling in menu
kub [Thu, 14 Jan 2021 20:47:19 +0000 (21:47 +0100)]
add buffer parameters for menubg_src
kub [Mon, 26 Oct 2020 19:15:23 +0000 (20:15 +0100)]
fix SDL event handling of overlapping keystrokes
kub [Thu, 22 Oct 2020 20:34:14 +0000 (22:34 +0200)]
fix menu input handling (timeout non-working)
kub [Tue, 20 Oct 2020 20:49:34 +0000 (22:49 +0200)]
fix SDL loosing one-shot key events for emulator keys
notaz [Tue, 13 Oct 2020 19:50:01 +0000 (22:50 +0300)]
Merge pull request #8 from irixxxx/master
improve SDL support (triple buffering, bugfix)
kub [Sat, 10 Oct 2020 18:57:22 +0000 (20:57 +0200)]
fix loading screen if loading rom from command line
kub [Sat, 10 Oct 2020 18:56:21 +0000 (20:56 +0200)]
add triplebuffering support
notaz [Thu, 2 Jul 2020 21:08:59 +0000 (00:08 +0300)]
Merge pull request #7 from irixxxx/master
extensions for irixxxx/picodrive
kub [Thu, 2 Jul 2020 07:34:11 +0000 (09:34 +0200)]
add 2x overlay for SDL to improve color resolution
kub [Thu, 2 Jul 2020 07:32:08 +0000 (09:32 +0200)]
add more host disassembler platforms for picodrive DRC
kub [Thu, 2 Jul 2020 07:30:56 +0000 (09:30 +0200)]
font array size adaption to avoid a compiler warning in picodrive
notaz [Sat, 7 Dec 2019 19:38:32 +0000 (21:38 +0200)]
deal with some gcc7+ warnings
notaz [Sun, 28 Jan 2018 17:57:57 +0000 (19:57 +0200)]
fix some pointer arithmetic
notaz [Sat, 5 Apr 2014 19:02:55 +0000 (22:02 +0300)]
add a pitch variable
notaz [Mon, 11 Dec 2017 00:51:29 +0000 (02:51 +0200)]
x86_64 support for host_dasm
notaz [Fri, 13 Oct 2017 23:12:21 +0000 (02:12 +0300)]
don'r check d_name
d_name is not a pointer, just like clang warns
notaz [Thu, 5 Oct 2017 22:23:03 +0000 (01:23 +0300)]
retry with mmap when mremap fails
Nolan "Tempa Kyouran" Varani [Sat, 30 Sep 2017 12:17:30 +0000 (07:17 -0500)]
Prevent segfault in draw_key_config (#2)
Its calculated `y` value can dip below zero
This causes a segfault if used as an argument of `text_out16`
notaz [Sun, 8 Nov 2015 16:19:22 +0000 (18:19 +0200)]
input: bugfix in defbind check
notaz [Fri, 28 Aug 2015 22:18:03 +0000 (01:18 +0300)]
oss: use other sync macro
for compatibility with OSSv4