Commit Graph

346 Commits

Author SHA1 Message Date
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
ToadKing 0ded65d177 (GX) max_xfb_height not necessary 2013-02-09 12:49:43 -05:00
twinaphex d3cceb2bd8 (GX) Revert 'Pass GX_NEAR_MIP_NEAR to GX_initTexObjLOD just to be
safe' - would force nearest filter
2013-02-09 16:09:01 +01:00
twinaphex f37e414e23 (GX) Pass GX_NEAR_MIP_NEAR to GX_InitTexObjLOD just to be safe 2013-02-06 09:33:24 +01:00
ToadKing ebf83bff76 (GX) PAL fixes 2013-02-05 23:11:35 -05:00
ToadKing 9807826e61 (GX) nit 2013-02-05 21:56:29 -05:00
ToadKing 80be1847a3 (GX) attempt to fix screen resolution issues 2013-02-05 21:36:15 -05:00
ToadKing 3f4699cdd4 (GX) re-enable ASM blitter 2013-02-02 21:51:55 -05:00
ToadKing 4d1dccbd25 (GX) fix video issue on non-multiple-of-4 texture 2013-02-02 21:47:27 -05:00
ToadKing 98fa22bd37 (GX) fix nunchuk/cc joysticks 2013-01-29 18:48:52 -05:00
ToadKing 84e48fd3ed (GX) don't rotate menu if game rotates 2013-01-21 18:12:32 -05:00
ToadKing 9283aa2ea8 (GX) set default unbound buttons correctly 2013-01-21 17:32:37 -05:00
ToadKing 5daf48f303 (GX) cleanup input code a bit
fix minor accuracy issue with joystick values
2013-01-19 14:43:18 -05:00
twinaphex e30b71c2e4 (Wii) Refactor classic analog controller code somewhat 2013-01-18 19:43:56 +01:00
twinaphex 70e41129c2 (GX) Add Gamecube shortcut button combos 2013-01-18 15:46:02 +01:00
twinaphex b1cb4a7cd4 (Wii) Add button combo shortcut binds 2013-01-18 15:07:11 +01:00
twinaphex 0acf0a461b (Wii) Both analog sticks now work more or less correctly 2013-01-18 14:24:46 +01:00
twinaphex 1d29060e08 (Wiiuse) Merge patches from rpavlik/wiiuse
(GX) Remove Wii Classic analog stick menu moving -too twitchy to
bother with
2013-01-18 12:16:06 +01:00
ToadKing 929859a291 (GX) fix some menu messages not appearing
adjust position of in-game messages
2013-01-14 16:31:33 -05:00
twinaphex c9b0e1635e (GX) Shows text menu message now ingame 2013-01-14 06:26:45 +01:00
twinaphex 0ed0295629 Revert "(GX) Declutter message queue code in RGUI"
This reverts commit 28b79e5872.
2013-01-14 03:55:01 +01:00
twinaphex 28b79e5872 (GX) Declutter message queue code in RGUI 2013-01-14 03:49:24 +01:00
twinaphex 0f2e36d349 (RARCH_CONSOLE) Move default_binds 2013-01-13 03:17:13 +01:00
twinaphex 04cacb5e30 Upgrade lifecycle_menu_state to 64bit variable lifecycle_mode_state 2013-01-12 03:13:03 +01:00
twinaphex cc43b84ff2 (RARCH_CONSOLE) Refactor more state variables 2013-01-11 19:44:34 +01:00
twinaphex ca3be92255 (RARCH_CONSOLE) Refactor msg_fps variable 2013-01-11 06:56:05 +01:00
twinaphex 5bf022fd99 (RARCH_CONSOLE) Use local variable copy of g_extern.lifecycle_menu_state in frame
functions - more state functionality will be moved here (for console ports)
2013-01-11 06:32:35 +01:00
twinaphex 3c8bb7333e (RMenu) Refactor g_extern.draw_menu 2013-01-10 19:43:00 +01:00
twinaphex a925f3ca9f (RARCH_CONSOLE) Rename and relocate all menu files 2013-01-09 17:50:12 +01:00
twinaphex 905a2046f4 (NGC) Fix build 2013-01-09 05:08:08 +01:00
ToadKing f33ed73671 (Consoles) re-add second timer for scroll delays 2013-01-07 23:58:00 -05:00
ToadKing 1dc08b9a6d (GX) work with new console code 2013-01-07 23:48:21 -05:00
Themaister d9b640fafe (RARCH_CONSOLE) fixups for set_shader(). 2013-01-08 04:08:15 +01:00
twinaphex fe62828fb1 (RARCH_CONSOLE) Refactor timer code 2013-01-08 00:35:49 +01:00
twinaphex 3a5d056b95 Expand functionality of set_shader callback function 2013-01-07 16:46:26 +01:00
ToadKing 1221b024cb (GX) fix potential memory corruption in 32-bit video conversion 2013-01-06 20:34:41 -05:00
twinaphex 4866aff654 (Android) Input tweaks - use local pointer variables 2013-01-07 02:09:19 +01:00
twinaphex 31e82fa6e8 (GX) Input - fix ifdefs 2013-01-07 01:51:29 +01:00
twinaphex e563b3f1d2 (GX) One for loop now for both PAD and WPAD - WPAD done
first
2013-01-07 01:48:56 +01:00
ToadKing 5f08c2f937 (GX) skip polling of disconnected GC controllers 2013-01-06 19:19:23 -05:00
ToadKing 71bc5ae50d (GX) potential video memory corruption 2013-01-06 19:02:49 -05:00
ToadKing dc92db11a3 (GX) fix input quirks 2013-01-06 18:47:52 -05:00
twinaphex 1a48a5522d (GX) Shows 'ingame menu' options now 2013-01-06 23:45:30 +01:00
twinaphex 3f2112d2fd (GX) Input polling refactor - do Wiimote first - skip GC poll
if no GC pads are connected
2013-01-06 20:17:05 +01:00
twinaphex 33154c1a04 (GX) Input tweaks 2013-01-06 19:40:54 +01:00
twinaphex 40430f735b (Wii) Menu flow control improvements 2013-01-06 17:40:27 +01:00
twinaphex 6c4da75612 (RARCH_CONSOLE) Move Salamander files to frontend/salamander 2013-01-06 05:33:37 +01:00
twinaphex 011e740129 Move all frontend files to new dir 'frontend' 2013-01-06 05:22:21 +01:00
twinaphex aaebc0be3d (RARCH_CONSOLE) Add #ifdef HAVE_DYNAMIC for libretro dynamic
library argv
2013-01-06 04:11:24 +01:00
twinaphex 66dfceabe1 (RARCH_CONSOLE) Build fixes + rarch_main_init_wrap needs to be
always compiled in and not ifndef HAVE_RARCH_MAIN_WRAP
2013-01-06 03:50:55 +01:00
twinaphex 3f537518e1 (RARCH_CONSOLE) Use g_extern.config_path 2013-01-06 03:09:51 +01:00
twinaphex 369477a15b (RARCH_CONSOLE) Add MODE_INIT 2013-01-06 01:28:39 +01:00
twinaphex e06583a45c (RARCH_CONSOLE) Get rid of emulator_initialized - replace with main_is_init 2013-01-05 23:49:58 +01:00
twinaphex c0c81bf22b (RARCH_CONSOLE) Move rarch_config_save to settings.c - rename to
config_save_file
2013-01-05 22:18:59 +01:00
twinaphex 08afcbfa3d (RARCH_CONSOLE) Use void* for param passing type 2013-01-03 03:02:52 +01:00
twinaphex 14c3faab53 (GX) Create stub gx_set_shader function 2013-01-02 17:13:32 +01:00
Themaister 0b4cf2d053 Update license headers to 2013. 2013-01-01 01:41:15 +01:00
ToadKing 44dbdf7b02 (GX) skip launching salamander if we're switching core, one less point of failure 2012-12-30 18:06:17 -05:00
ToadKing 1fccba40d5 (GX) add ability to change default save location
fix save/load/screenshot/reset options not showing up in in-game menu
2012-12-30 17:30:43 -05:00
Toad King 5400d9eaa4 (GX) adjust refresh rate for non-interlaced mode
fix pal-60 detection
2012-12-23 15:43:37 -05:00
Toad King ac1e760296 (GX) small changes to video mode switching, fixes debug text in some video modes 2012-12-23 12:52:35 -05:00
Toad King 9a41c3c1c7 (GX) convert image to pixel format with alpha field if we're drawing the menu 2012-12-23 12:32:24 -05:00
Toad King c42bbaf191 fix 2012-12-18 23:04:26 -05:00
Toad King 79ccb9a6d9 (GX) implement 32-bit color support 2012-12-18 22:18:31 -05:00
twinaphex 2ecb4cebe8 (GX) Video - refactor convert_texture function some more 2012-12-19 04:16:04 +01:00
twinaphex 2e9d84efc3 (GX) Video - small refactor of texture conversion routine 2012-12-19 04:08:47 +01:00
Toad King 376317309e Revert "(GX Video) Only update texture if frame is not NULL"
This reverts commit 78027ee920.

the logic for this is already in update_textures and it broke menu rendering
2012-12-18 21:12:00 -05:00
twinaphex 5cd6017ff5 (GX) Use g_extern.draw_menu 2012-12-18 08:32:48 +01:00
twinaphex 49d35b2339 (Wii) Use WPAD_Data to obtain local pointer to pad state 2012-12-16 07:28:01 +01:00
twinaphex 7a67348b3c Change 1 << for bitmasks to 1ULL << 2012-12-15 18:00:30 +01:00
twinaphex ffa5d4fa5f Rewrite do-while loops for console ports 2012-12-15 16:47:35 +01:00
twinaphex dacab094f0 (RMenu) menu_loop renamed into rmenu_iterate - iterates menu code for one frame 2012-12-15 16:40:02 +01:00
twinaphex 78027ee920 (GX Video) Only update texture if frame is not NULL 2012-12-15 07:33:56 +01:00
twinaphex 799a9c35fb gfx_common.c - make gfx_get_fps into the main public function -
and remove the two public wrapper functions
2012-12-15 07:03:33 +01:00
twinaphex 7685009f56 (GX) Compile fixes -haven't tested yet 2012-12-15 05:55:08 +01:00
twinaphex 89e493ed15 (GX) Some input tweaks 2012-12-15 05:46:49 +01:00
twinaphex 8a271d318c Frame advance - get rid of unnecessary extern variables now 2012-12-15 02:25:48 +01:00
twinaphex dbb962e946 Streamline frame_count usage
(Android/Griffin) Fix build
2012-12-14 20:33:36 +01:00
Toad King 2209103248 (GX) redo video/RGUI code to use new font location 2012-12-13 16:12:51 -05:00
Toad King c6111a3259 [CONSOLE] Make separate timers for holding scroll and menu/exit button delay.
Fixes issues with exit/menu button combo not working on GC controllers occasionally
2012-11-28 19:55:08 -05:00
Toad King dcf505f0ea [GX] expand VI width in widescreen mode 2012-11-28 09:36:26 -05:00
twinaphex 1e91a5b827 (Wii) Input driver - some name changes so that Griffin function
overrides still work
2012-11-27 01:23:10 +01:00
Themaister 2c41fe7288 Move log_fp to g_extern.
Rework logger macros to use g_extern.log_file is it's non NULL.
Otherwise, fallback to stderr.
2012-11-26 16:59:00 +01:00
twinaphex e1ea973e58 Promote HAVE_FILE_LOGGER for all platforms 2012-11-26 02:46:40 +01:00
Toad King 6dad2cda8c [GX] Probe Wiimote before doing input code for it 2012-11-23 18:01:28 -05:00
Toad King f02b7e1791 [GX] set auto-return for crashes on release builds 2012-11-22 02:09:13 -05:00
Toad King f333d0bc8c [GX] cleanup, prepare for 32-bit support (needs to be implemented) 2012-11-22 02:09:12 -05:00
Toad King 9746cb8f97 (GX) fix blank video 2012-11-20 18:21:42 -05:00
twinaphex 41b1bd3ed0 (GX/XDK) Have console ports use gfx_fps_title instead of gfx_window_title 2012-11-18 02:32:58 +01:00
Toad King 7f81422ae0 [CONSOLES] get compiling working
[GX] support rgb565, still need to fix a blending issue
2012-10-21 19:01:43 -04:00
twinaphex 6bf7c3cb06 Update credits for collaborated files 2012-10-18 06:06:55 +02:00
twinaphex 174c7d9d98 (RARCH_CONSOLE) g_console struct removed now - console settings
now a part of g_extern and also compiled in for PC - will use
this for RMenu
2012-10-15 06:25:12 +02:00
twinaphex f4b197784c Move zip_extract_mode from g_console to g_extern.filebrowser_state 2012-10-14 20:45:30 +02:00
twinaphex fc17456581 (RMenu / RARCH_CONSOLE) Move more g_console state to g_extern 2012-10-14 20:34:16 +02:00
twinaphex c6cf258b42 Simplify rarch_config_load 2012-10-04 20:09:23 +02:00
Twinaphex c09fa1c7af Revert "(Android) Set up rarch_main_init_wrap so that it can load dynamic" - revisit
later

This reverts commit 42f2d068a7.
2012-09-13 06:45:41 +02:00
Twinaphex 42f2d068a7 (Android) Set up rarch_main_init_wrap so that it can load dynamic
libretro cores if supported
2012-09-13 06:28:57 +02:00
Toad King c69b3ca938 (GX) support more resolution modes, attempt fix at clearing garbage left during screen switch 2012-09-12 09:36:38 -04:00
Toad King 9f345b4483 (GX) prepare for more custom resolution modes 2012-09-12 00:17:33 -04:00
Toad King e8ad25aef3 (GX) fix up bugs on switching screen resolution
change RGUI dimensions to display better with different resolutions
2012-09-11 23:33:44 -04:00
Toad King 0a5c5ca1c5 (GX) big video code changes, added some custom resolutions for specific consoles 2012-09-11 21:19:45 -04:00