Commit Graph

274 Commits

Author SHA1 Message Date
twinaphex
aabbf835fc global_init_drivers - remove obsolete comment 2013-11-02 05:30:05 +01:00
twinaphex
71a23ac18e Slim down global_init_drivers - we can now get rid of the 'start'
function
2013-11-01 21:10:42 +01:00
twinaphex
727dc76db8 (Console/Android) Init input driver from context driver/graphics
driver from now on - just like PC - input driver initing can be
hoisted out of global_drivers_init that way
2013-11-01 16:33:32 +01:00
Themaister
f2e85f9b9b Clean up driver prev/next/find a bit. 2013-10-30 23:37:46 +01:00
twinaphex
aab3f93f56 Fix driver next/previous switching 2013-10-30 17:50:43 +01:00
twinaphex
b2d1fe66b3 (RGUI) Can now change drivers from RGUI - you need to restart
for changes to take effect
2013-10-30 17:06:50 +01:00
Themaister
9be4fe705b viewport_info can be NULL. Check for this. 2013-10-26 18:51:00 +02:00
Themaister
fc5ba8f79a Use configured aspect ratio to set windowed size.
Fixes some cases where core aspect is used and aspect_ratio_auto isn't set.
2013-10-26 18:31:48 +02:00
twinaphex
d2c87e3039 Convert most C99-style for loop initial declarations to C89-compliant
ones
2013-10-22 15:08:17 +02:00
Themaister
d215ec4ea8 Fix potential bug when HW render is used.
If e.g. D3D9 driver was used find_video_driver() would override GL
driver on reinit. Avoid this by doing this logic in find_video_driver()
instead.
2013-10-07 16:26:06 +02:00
twinaphex
c052b2fb9c (RARCH_CONSOLE) Some cleanups 2013-10-06 23:14:41 +02:00
Themaister
3b97cdfdac Add threaded video option. 2013-10-06 17:23:49 +02:00
twinaphex
0798431175 (360) Fix build. 360 port works again 2013-09-29 20:49:04 +02:00
Themaister
ae0d1ff282 Fix bug with use_float.
If audio driver changed from pulse to alsa via config change,
audio would be broken as use_float would be set to true.
2013-09-27 00:19:03 +02:00
Themaister
c7db4aff64 Support variable strength for rumble motors. 2013-09-26 12:55:05 +02:00
Themaister
8b1ac3bc9e Add rumble tests to libretro-test. 2013-09-25 23:58:02 +02:00
Themaister
a01ef18f80 Add RETRO_ENVIRONMENT_GET_RUMBLE_INTERFACE. 2013-09-25 23:21:32 +02:00
Themaister
841d8fa8e1 Add video_rotation.
Replaces g_extern.console.screen.orientation.
Rotation semantics have slightly changed to be more composable.
The rotation is now video_rotation + rotation set by cores themselves
(if allowed).

The config is now also saved properly.
2013-09-22 11:45:04 +02:00
Themaister
38ec55573c Rework SET_AUDIO_CALLBACK.
When disabling audio and/or muting, the core has no way
of knowing this, causing potential issues in a threaded mixer.

This environ is not used by any public core to my knowledge so the old
API has been removed and replaced with a change to environment number
(20 -> 22).
2013-09-14 17:28:09 +02:00
Hans-Kristian Arntzen
7d90ff4011 Merge pull request #303 from libretro/emscripten
Emscripten/Javascript port
2013-09-11 01:01:29 -07:00
ToadKing
a09dda3a9d [EMSCRIPTEN] add custom input driver, removes SDL dependency + adds mouse support 2013-09-10 20:21:48 -04:00
meancoot
149a0f37d0 (Overlay Analog) Coding style fixes 2013-09-05 18:19:07 -04:00
ToadKing
04be8cbee2 new audio core, RWebAudio. Glitchy, but works well, even with requestAnimationFrame callbacks 2013-08-28 00:03:25 -04:00
ToadKing
87844cc486 Merge branch 'master' of https://github.com/libretro/RetroArch into emscripten
Conflicts:
	gfx/gl.c
2013-08-25 15:37:16 -04:00
Themaister
e8271031b6 Stop/start audio driver on mute. 2013-08-11 01:09:10 +02:00
Themaister
a543b5da74 Fix threaded audio race conditions. 2013-08-11 01:07:59 +02:00
Themaister
f4a23115c2 Begin adding AUDIO_CALLBACK/FRAME_TIME_CALLBACK. 2013-08-11 01:05:33 +02:00
Themaister
3dd5cd39c4 Add cache_context/destroy notification. 2013-08-11 00:55:05 +02:00
Themaister
b33af9d6b6 Fix some context_reset() calls being missed. 2013-08-11 00:53:46 +02:00
Themaister
e18af77412 Add path to cache GL context on reinit.
If successful, can avoid libretro GL reset context callback being
called.
2013-08-11 00:53:19 +02:00
Themaister
b268c2957c Don't spam errors when in RGUI and threaded video. 2013-08-10 23:58:56 +02:00
twinaphex
f7622d3294 Add OMAP graphics driver (Tobias Jakobi) 2013-07-28 18:37:31 +02:00
ToadKing
49398698b5 initial emscripten port (no audio/files, input broken) 2013-07-17 20:26:01 -04:00
meancoot
78acc25931 (Apple) Add keyboard input support for OSX 2013-07-07 16:01:58 -04:00
twinaphex
308e64094b (ALSA QSA) Add preliminary ALSA QSA driver based on CatalystG's
audio driver for PCSX ReARMed - still broken - exits at 'Error:
Channel Parameter Error - no such process'
2013-06-21 18:56:39 +02:00
Themaister
d5a8d3bfb0 Can update video refresh rate from RGUI. 2013-06-07 14:34:09 +02:00
Themaister
b0b6e65ab6 Add monitor refresh rate monitor in RGUI.
Doesn't support updating refresh rate setting yet.
2013-06-07 14:10:42 +02:00
Themaister
cee493fb18 Make integer scale robust against rounding errors. 2013-06-05 21:48:52 +02:00
Themaister
ac6c576d29 Drop dependency on delay_timer in RGUI. 2013-04-26 23:52:29 +02:00
Themaister
9a3875d99a Don't hardcode new delay timers in RGUI.
Delay timers are reset in driver.c.
2013-04-26 20:16:58 +02:00
ToadKing
73e4adf8dc adjust delay timers when resetting frame count 2013-04-26 13:12:45 -04:00
twinaphex
34619412bc (RARCH_CONSOLE) Get rid of video_stop_func 2013-04-24 16:08:18 +02:00
Themaister
3c31d6118a Fix video_poke check causing SDL crash. 2013-04-21 23:17:34 +02:00
Themaister
be01a0ea59 Refactor aspect ratio handling.
Rework aspect ratio handling in RGUI.
Custom viewports work on PC. Ensure that aspect_ratio_idx persist
through reentrancy. Change ASPECT_RATIO_AUTO to ASPECT_RATIO_SQUARE to
better signal that it's the square pixel option.

Add ASPECT_RATIO_CONFIG as an option to use config file defined aspect
ratio.
2013-04-20 10:56:04 +02:00
Themaister
db183b5d97 Fix shader dir crash if folder doesn't exist. 2013-04-16 12:01:50 +02:00
Themaister
c7c952113a Reset frame_counter on driver reinit.
Avoids "Unnamed Window" for 3-4 secs on restart.
2013-04-16 00:57:46 +02:00
Themaister
c9fed3c6e9 More stringent pointer checking. 2013-04-14 12:24:16 +02:00
Themaister
36ea8f9cf6 Fix logic bug in driver_set_nonblock_state. 2013-04-14 11:52:15 +02:00
Themaister
f968ee6527 Refactor nonblock states.
Preserve nonblock state better across reinits, etc.
Try to keep vsync in RGUI.
2013-04-14 00:56:55 +02:00
Themaister
8fee69776f Disable threaded driver with HW render.
Won't work so simply.
2013-03-30 21:20:26 +01:00