Commit Graph

346 Commits

Author SHA1 Message Date
twinaphex c8f73d46f9 (GX) Video inlining cleanups 2014-02-19 21:01:36 +01:00
twinaphex 6a4cfc7271 (GX) Get rid of warnings while compiling Wii/NGC versions 2014-02-19 18:07:47 +01:00
twinaphex de0d0626f6 Include boolean.h instead of stdbool.h 2014-02-11 07:49:15 +01:00
twinaphex 460670f074 Move sensor value reading to retro_sensor_interface 2014-01-20 14:52:53 +01:00
twinaphex 2c7c24b452 (GX) Jacobeian changes 2014-01-06 21:50:22 +01:00
twinaphex 5578cd6ed6 (NGC) Fix build 2014-01-05 00:07:35 +01:00
twinaphex 0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
twinaphex 75a6db27b4 (GX/PS3) Reimplement menu binds 2013-12-26 20:11:33 +01:00
Toad King 54246497a8 [GX] add default binds for axises 2013-12-23 19:46:25 -05:00
Toad King 2b3e5d6bbc [GX] add in menu bind for classic controller home button 2013-12-22 21:12:19 -05:00
Toad King 2f46fa4fe9 [GX] input changes work now 2013-12-22 21:07:37 -05:00
Toad King d7cacaa9ed start of porting wii input driver to better support RGUI. still has issues with axises 2013-12-22 19:47:33 -05:00
twinaphex 0f9310543e (Wii) Add pad autodetection if g_settings.input.autodetect_enable is
set to true - Wiimote + attachment is leading in case both a GC pad
and a Wiimote are on the same port
2013-12-12 22:28:43 +01:00
twinaphex eacc193d74 (GX) Rewrite audio interleaving
(GX) Make menu_binds variable Wii-only for now
(Menu) Add toggleable autodetect_enable for input
2013-12-12 22:10:11 +01:00
twinaphex 21ae4c24af (Wii) Menu now takes input again from Gamecube pad, Wiimote, Wiimote + Classic
and Nunchuk
2013-12-12 20:50:42 +01:00
twinaphex a7a30646de Remove rgui.h 2013-11-11 12:15:38 +01:00
ToadKing 2a7d39db2b [GX] fix crashes 2013-11-07 17:47:28 -05:00
twinaphex da8f8b6d63 Get rid of lifecycle_mode_state and use g_extern.lifecycle_state
instead
2013-11-07 21:44:44 +01:00
twinaphex fb5c2d5f34 (GX) Build fixes 2013-11-04 16:48:03 +01:00
twinaphex c0e02d3957 (Android/General) Add preliminary sensor support to libretro API /
add accelerometer support to Android input driver
2013-11-03 00:27:58 +01:00
twinaphex 3e8166bfa5 (Input) Add new function to input driver - get_capabilities 2013-11-02 21:16:57 +01:00
twinaphex f149c387b9 Remove 'start' from video interface 2013-11-01 21:18:38 +01:00
twinaphex 17b69cbc29 (GX) Reimplement audio driver 2013-11-01 20:02:21 +01:00
twinaphex e9243a5ab4 (GX) Move remainder of video initing code to gx_init 2013-11-01 18:12:06 +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
ToadKing 752fdaeca9 [GX] remove unused variables 2013-10-15 18:41:47 -04:00
ToadKing 160b609862 [GX] fix audio stuttering on exit/low fps 2013-10-15 18:41:28 -04:00
ToadKing 9f592f1905 [GX] fix FPS debug text 2013-10-15 18:40:23 -04:00
ToadKing fc2bbfbdc3 [GX] disable interrupts when changing video mode
might help with those weird video corruptions people sometimes get
2013-10-15 18:40:00 -04:00
twinaphex 849cfb680e Saves 'Show Framerate' setting to config file now too 2013-10-11 01:19:54 +02:00
Themaister 84c84814cf Fix possible crash with uninitialized buf_fps.
If fps count == 0, buf_fps would not be written to.
Also, make writing into buf_fps optional. Drop always_write variable as
it doesn't serve a purpose anymore.
2013-10-07 21:54:29 +02:00
twinaphex c0c6ecc6cb Rewrite gfx_get_fps - now outputs proper string for FPS output 2013-10-07 20:17:07 +02:00
twinaphex d17faaca35 (GX) Take out all D-pad emulation code (and treating analog sticks
as digital buttons) - will need to wait for the global solution
for D-pad emulation
2013-10-07 16:19:32 +02:00
twinaphex fd053086ef (RARCH_CONSOLE) Remove DECREMENT_BIND/INCREMENT_BIND 2013-10-06 20:01:44 +00:00
twinaphex abb829283b Take out messy Dpad emulation code - this will require an entire
rewrite where we come up with a solution that works the same across
console/PC/mobile
2013-10-05 20:55:37 +00:00
twinaphex cf3fa07c4a (RARCH_CONSOLE) Reduce code duplication for default input binds 2013-10-01 18:38:12 +02:00
twinaphex 749b9c0945 (GX) Don't use WPAD_Probe every frame 2013-07-28 19:11:22 +02:00
twinaphex db9462bc49 (GX) Build fixes 2013-07-27 21:38:38 +02:00
ToadKing da6b004479 (GX) implement joystick support 2013-07-04 14:52:53 -04:00
ToadKing cd8269abd4 (GX) fix FPS reporting 2013-06-17 18:14:45 -04:00
twinaphex 559c4a7964 (RARCH_CONSOLE) Add refresh rate FPS statistics 2013-06-08 01:45:25 +02:00
Themaister 321ffcbca6 Calculate 1:1 PAR from right dimensions.
Frame cache can be stale or have awkward dimensions which
don't really reflect 1:1 PAR semantics.
2013-06-05 21:29:52 +02:00
twinaphex 82b6ab3ec7 (NGC) Build fixes 2013-05-22 00:30:02 +02:00
twinaphex cd9c6aa95d Drop delay_timer 2013-04-27 21:27:41 +02:00
ToadKing f3c782a6af fix wrong colors with RGUI open 2013-04-26 19:23:53 -04:00
ToadKing 1db27ad356 fix GX build
we don't want to delete framebuffers or clear the frame on free since we might be loading a game, not exiting
2013-04-25 17:42:42 -04:00
twinaphex 34619412bc (RARCH_CONSOLE) Get rid of video_stop_func 2013-04-24 16:08:18 +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
twinaphex eb42492ab0 (GX) Use GX_InitTexObjFilterMode to set filtering modes 2013-04-19 16:23:09 +02:00
twinaphex 406d3a5d26 (GX) Add video optimizations 2013-04-19 16:09:37 +02:00
twinaphex 08f2c286fa (GX) Set should_resize to false after doing the should_resize state block 2013-04-19 12:35:16 +02:00
twinaphex 96f2ecce20 (RMenu/RGUI) Move filebrowser/menu stack initialization to upper-layer
menu_init() function
2013-04-18 18:33:03 +02:00
Themaister e389220df8 Refactor frame_counter.
Graphics drivers get the task of updating this.
If threaded driver is used, main thread cannot update the counter
due to race conditions.
2013-04-13 14:28:12 +02:00
twinaphex 4e188a0e00 (Wii/RGUI) Take out QUIT_KEY button combo shortcuts - current
RGUI works such that it goes directly into the ingame menu
after pressing menu toggle and you can quit from there.
2013-04-12 09:28:12 +02:00
twinaphex a49fe27d21 (GX) Make Wii/Gamecube gx_video no longer depend on MODE_MENU_DRAW 2013-04-11 16:10:09 +02:00
twinaphex 8f0ea4c1a6 (GX) Build fix (in light of removing set_blend function pointer) 2013-04-11 13:47:45 +02:00
Themaister 4cdfcf30d5 Refactor set_rgui_texture.
More generic and avoids poking directly into RGUI state.
2013-04-07 14:07:45 +02:00
Themaister f88ea04c28 Remove fixed shader index in set_shader. 2013-04-07 13:00:21 +02:00
twinaphex 909122122d Take out obsolete console-style overscan options - just use
Resize Mode instead
2013-04-07 01:23:10 +02:00
twinaphex 39c0ed745c (PS3) Get rid of QUICKMENU_TOGGLE define - was surpassing 64 entries
on PS3 - now going to do 'menu toggle behavior' logic instead -
menu toggle now triggers ingame menu - will be configurable
2013-03-30 07:19:42 +01:00
Themaister 51b5a2df5c Refactor aspect_ratio member.
Mutate in g_extern.system.aspect_ratio to avoid
getting wrong aspect ratio on reentrancy.
2013-03-17 22:05:15 +01:00
twinaphex ad2cd4e492 Revert "Remove platform-specific MAX_PADS - use global define MAX_PLAYERS"
This reverts commit fb1355b975.
2013-03-16 17:51:45 +01:00
twinaphex f028a8555e Revert "Move set_keybinds autoconfiguration (that is done on every console"
This reverts commit c26653fca8.
2013-03-16 17:51:37 +01:00
twinaphex c26653fca8 Move set_keybinds autoconfiguration (that is done on every console
port) to driver.c - reducing lots of duplicate code
2013-03-16 17:24:24 +01:00
twinaphex fb1355b975 Remove platform-specific MAX_PADS - use global define MAX_PLAYERS
instead and customize it for certain ports
2013-03-16 17:13:28 +01:00
twinaphex 0166ce4585 (RGUI) RGUI input code now no longer GEKKO-specific 2013-03-15 01:22:52 +01:00
twinaphex 375aa08e58 Remove rarch_conole_input - runtime button remapping should have
no more RARCH_CONSOLE dependencies
2013-03-14 21:55:10 +01:00
twinaphex 477b6ed893 Bugfix to previous commit 2013-03-14 18:04:16 +01:00
twinaphex 44ccbe0122 Implement KEYBINDS_ACTION_GET_BIND_LABEL - will be used through
set_keybinds
2013-03-14 18:02:19 +01:00
twinaphex fd05b5a25c rarch_input_set_keybind refactored away - input driver's set_keybinds
function now provides the functionality
2013-03-14 15:01:36 +01:00
twinaphex ede829c354 Refactor set_default_keybinds callback into set_keybinds - remove
set_analog_dpad_mapping and have it go through set_keybinds - expand
functionality of set_keybinds
2013-03-14 02:24:57 +01:00
twinaphex 4fa8d0f3c6 (Android) Rewritten input_autodetect- now implements set_default_keybinds 2013-03-13 23:17:33 +01:00
twinaphex ece717f2cc Rename set_default_keybind_lut to set_default_keybinds 2013-03-13 16:30:01 +01:00
twinaphex 4bd0999940 Remove rarch_input_set_default_keybinds - merge with function
pointer set_default_keybind_lut
2013-03-13 16:06:13 +01:00
twinaphex 8f5a49dc7e Refactor default_binds - now becomes a member ni retro_keybind
called def_joykey
2013-03-13 15:34:33 +01:00
twinaphex 31998880f6 (Input) Remove max_pads member variable (was RARCH_CONSOLE only -
not needed)
2013-03-13 00:39:01 +01:00
twinaphex 545911d4da (Input) Remove post_init and make it part of input_init 2013-03-13 00:34:46 +01:00
twinaphex 3f4366628d (GX) Input build fix 2013-03-13 00:14:28 +01:00
twinaphex 42bdd80ec4 Combine rarch_input_set_controls_default and post_init 2013-03-13 00:12:29 +01:00
twinaphex 8edab3d970 Skip D-pad emulation polling when dpad_emulation is disabled 2013-03-12 23:45:47 +01:00
twinaphex 039fc644d5 Revert "Menu toggle without delay timers (more testing might be needed -"
This reverts commit 54a6175a55.
2013-03-11 02:07:50 +01:00
twinaphex 54a6175a55 Menu toggle without delay timers (more testing might be needed -
tested on PS3 RMenu and seemed to work well enough)
2013-03-11 01:12:19 +01:00
ToadKing eb82bd2127 implement driver.current_msg
fix RGUI to no longer use driver.video_data casting
2013-03-10 16:02:10 -04:00
ToadKing 5b5264f2c5 (GX) implement viewport_info 2013-03-10 15:33:41 -04:00
twinaphex e7287d19e5 Add HAVE_FBO ifdefs for gl and gx_video as well 2013-03-10 20:25:47 +01:00
Themaister 0e75731685 Add get_fbo_state(). 2013-03-10 20:13:04 +01:00
Themaister 0b67cd7e84 Add apply_state_changes. 2013-03-10 19:49:26 +01:00
Themaister 63d946c69f Add set_rgui_texture interface to video_poke. 2013-03-10 19:14:28 +01:00
twinaphex 59ff094b3b Add set_blend to video_poke interface 2013-03-10 03:53:42 +01:00
twinaphex 52ef22bfa9 (GX) Get poke interface from gx_start 2013-03-10 03:21:16 +01:00
twinaphex 7f986357be (GX) Use video_poke interface for GX as well 2013-03-10 02:42:16 +01:00
twinaphex dece16ea12 (GX) No public visibility for gx_set_aspect 2013-03-09 22:47:09 +01:00
twinaphex 66e7606b25 HAVE_RGUI and HAVE_RMENU are now mutually exclusive - no longer
have to be defined both for (say) the Android port
2013-03-09 17:42:19 +01:00
twinaphex 0b6e5a6388 Rename RARCH_RMENU_TOGGLE to RARCH_MENU_TOGGLE 2013-03-09 16:14:26 +01:00
twinaphex 34515fd7f5 (RARCH_CONSOLE) Integrate rarch-console_video into gfx_common 2013-03-09 03:20:59 +01:00
twinaphex a23bc3a13f Control flow change for RGUI/RMENU - no longer have to invoke RARCH_QUIT_KEY to toggle menu 2013-03-07 19:02:44 +01:00
ToadKing 8d35c7f1be (GX) update dist scripts for big stack cores 2013-02-22 15:24:05 -05:00
twinaphex a131f484ef (GX) Remove Wiiuse 2013-02-15 01:34:03 +01:00
twinaphex f0770eec48 (NGC) Remove sidestep code 2013-02-14 15:48:14 +01:00
ToadKing 8b4390dd06 (GX) Clamp max XFB height on PAL to 574
Official docs say 574 is the max, but libogc says its 576.
2013-02-10 17:19:09 -05:00