Commit Graph

649 Commits

Author SHA1 Message Date
twinaphex
9b41061143 Rename driver->video 2015-11-23 14:14:12 +01:00
twinaphex
71ca469cda GL totally abstracted away now from menu drivers 2015-11-02 20:41:42 +01:00
twinaphex
20b8d592e1 Create RARCH_DEVICE_MOUSE_SCREEN 2015-10-08 08:19:38 +02:00
twinaphex
cdef82b185 Make late binding possible for frontend drivers
(PS3) Fix shutdown/quit hang - now we have to fix exitspawn instead
2015-07-27 03:44:28 +02:00
twinaphex
cdf3ce309e Decouple 'overlay' state from driver_t 2015-07-09 01:10:30 +02:00
twinaphex
9488b47fbc Refactor gfx/video_pixel_converter.c 2015-06-25 10:37:10 +02:00
twinaphex
0e046c2fbb Create input_driver_keyboard_mapping_is_blocked/input_driver_keyboard_mapping_set_block 2015-06-19 03:45:23 +02:00
twinaphex
84a1885786 Create menu_input_get_ptr 2015-06-13 22:57:55 +02:00
Higor Eurípedes
f7bc0df9bc (libretro_version_1.c) Change current_msg to a char array 2015-06-09 17:02:28 -03:00
twinaphex
0cfeff8e1e Cleanups 2015-06-02 18:28:51 +02:00
twinaphex
3a7263020a Add grab_stdin function pointer to input driver - avoids threading
segfault at exit with linuxraw input driver to do with driver->stdin_claimed
2015-05-19 19:33:58 +02:00
twinaphex
44a8b8bcd3 Move font_handle and font_driver ot the driver struct 2015-04-25 00:32:01 +02:00
twinaphex
94150cef70 Add 'Record Driver' option 2015-04-15 13:37:38 +02:00
Twinaphex
de2eb5f972 Rename RARCH_CMD_* to EVENT_CMD_* 2015-04-13 10:29:15 +02:00
twinaphex
f8a31effb0 (UI companion) Some further improvements 2015-04-12 02:09:14 +02:00
twinaphex
4c2b301efb (UI Companion) Start creating UI companion interface 2015-04-12 01:31:03 +02:00
twinaphex
45e87c06e2 (Driver) Create video_context 2015-04-09 18:07:58 +02:00
twinaphex
43bb5c81cc Start creating input HID driver interface, etc. 2015-04-01 22:31:43 +02:00
aliaspider
560c98f3cb (menu) add pointer support (active only for rgui for now) 2015-03-28 22:35:18 +01:00
Radius
2f2a86e97f add osk enable hotkey 2015-03-25 22:24:12 -05:00
twinaphex
2a8f9fdfc0 Put g_driver on heap and make it a pointer 2015-03-22 01:16:57 +01:00
twinaphex
3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +01:00
twinaphex
9b442f9711 Start implementing wraparound for changing drivers 2015-03-09 14:32:58 +01:00
twinaphex
23eb3fa2ad Add returntype to find_next_driver/find_prev_driver 2015-03-09 04:22:41 +01:00
twinaphex
50baeba22a Fix race condition issue in threaded video mode when OSK is
brought up/down
2015-02-21 08:42:19 +01:00
twinaphex
d327863d0f Only carry one input overlay state 2015-01-29 22:54:42 +01:00
twinaphex
fc373630ce Start to approach OSK driver in a different way 2015-01-29 20:33:27 +01:00
twinaphex
d8fd5e14d0 Move global driver to bottom of header 2015-01-26 20:45:48 +01:00
twinaphex
bb481a158c Move get_proc_address/get_current_framebuffer to gfx/video_driver.c 2015-01-19 04:19:30 +01:00
twinaphex
3ec9005c5c Move set_rumble function to input/input_driver.c 2015-01-19 04:16:43 +01:00
twinaphex
b4a26e2e30 Make driver_adjust_system_rates into a static function again 2015-01-18 19:32:40 +01:00
twinaphex
be3ac6eccd Split up sensor code into its own file 2015-01-18 19:28:51 +01:00
twinaphex
e3897c8641 Less dependencies on driver.h 2015-01-18 19:01:13 +01:00
twinaphex
5c32acf91f Split up video_monitor code into separate file 2015-01-18 18:28:14 +01:00
twinaphex
0286078f8f Start properly namespacing monitor_* functions 2015-01-18 18:17:59 +01:00
twinaphex
e708e031d6 Add documentation to dynamic.c 2015-01-15 02:48:40 +01:00
twinaphex
90c7617b65 Rename retro.h to libretro_version_1.h 2015-01-13 02:29:08 +01:00
twinaphex
11bcc24c58 Rename some more files 2015-01-12 22:11:13 +01:00
twinaphex
2eee9d294e Rename ffemu.c to record_driver.c 2015-01-12 21:55:41 +01:00
twinaphex
64903de465 Rename frontend_context.c to frontend_driver.c 2015-01-12 21:21:08 +01:00
twinaphex
8b95cfe6e3 Get rid of RARCH_INTERNAL-specific code in resampler.c 2015-01-12 21:12:48 +01:00
twinaphex
e59dace9e1 (audio/resampler) Some changes 2015-01-12 21:02:13 +01:00
twinaphex
63281f8ca1 Move some code from driver.c to input_context.c 2015-01-12 20:25:07 +01:00
twinaphex
6b3a67d5ea Move driver_video_resolve to gfx/video_driver.c 2015-01-12 20:20:58 +01:00
twinaphex
72a7f43736 Cleanup in driver.h 2015-01-12 20:09:36 +01:00
twinaphex
6b2fced631 Split up menu code into separate file menu_driver.c 2015-01-12 20:00:43 +01:00
twinaphex
c4bf097d7f Move location_driver.c to location/ 2015-01-12 19:53:10 +01:00
twinaphex
a71b143dad Move location driver code to separate file location_driver.c 2015-01-12 19:51:33 +01:00
twinaphex
f45d9efb37 Move camera_driver.c to camera/ 2015-01-12 19:44:29 +01:00
twinaphex
4b0bd67d8d Split up camera driver code into separate file camera_driver.c 2015-01-12 19:42:43 +01:00
twinaphex
36d68b98b2 Move osk_driver.c to osk/ 2015-01-12 19:29:55 +01:00
twinaphex
2029e13e23 Split up OSK driver code into separate file osk_driver.c 2015-01-12 19:28:40 +01:00
twinaphex
f1196733b1 Move definitions to menu_driver.h 2015-01-12 19:13:45 +01:00
twinaphex
0d9ba863dc Remove menu/disp/menu_display.h and menu/backend/menu_backend.h
and merge into menu/menu_driver.h
2015-01-12 19:11:51 +01:00
twinaphex
d2449f07f7 Move header include to gfx/video_driver.h 2015-01-12 18:57:37 +01:00
twinaphex
f3dc94818e driver.h - cleanups 2015-01-12 18:56:23 +01:00
twinaphex
07a7386c9d Split up input_driver code to separate file - input_driver.c 2015-01-12 18:37:50 +01:00
twinaphex
7f484edc98 Move video_driver.c to gfx/ 2015-01-12 18:28:32 +01:00
twinaphex
0e5a9f03fe Split up video_driver code to separate file 2015-01-12 18:26:46 +01:00
twinaphex
7283ce17bc Move audio_driver.c to audio/ 2015-01-12 18:09:31 +01:00
twinaphex
0fbf48e451 Split up audio_driver code into audio_driver.c 2015-01-12 18:06:38 +01:00
twinaphex
badb29942b Add monitor FPS enable option 2015-01-12 05:59:11 +01:00
twinaphex
371e3ebdd7 Document more of driver.c 2015-01-12 05:37:52 +01:00
twinaphex
9f8c96daa1 Remove unused struct 2015-01-11 15:47:39 +01:00
twinaphex
9817555200 Move convenience macros used in runloop to runloop.c 2015-01-10 04:18:54 +01:00
twinaphex
e28f7c4862 Start documenting resampler.c 2015-01-09 23:04:05 +01:00
twinaphex
9487594aea Start documenting driver.c 2015-01-09 21:07:32 +01:00
twinaphex
453321c50b Start updating headers 2015-01-07 17:46:50 +01:00
twinaphex
31d816b6d3 Start preparing for remap binds 2015-01-05 02:36:10 +01:00
twinaphex
1e3686df40 Change audio_resampler_driver to 'OPTIONS' 2014-12-31 20:17:53 +01:00
twinaphex
ce57697629 Add more HAVE_OVERLAY ifdefs to driver.h 2014-12-29 10:47:30 +01:00
twinaphex
494be5ee07 Move more overlay struct definitions to overlay header 2014-12-29 10:44:35 +01:00
twinaphex
82f6c57966 Add new option 'Show Autoconfig Descriptor Labels' for more
comprehensible button labels per joypad - needs to be added per
autoconfig file
2014-12-16 06:21:18 +01:00
twinaphex
ec2242db02 Implement other driver options too 2014-11-26 21:48:02 +01:00
Twinaphex
0f43deb6d2 (Apple) Start making camera driver OSX-compatible (OSX 10.7 and up/requires AVFoundation) 2014-11-18 18:04:17 +01:00
Jay McCarthy
8a4f65e227 Moving function 2014-11-11 12:23:24 -05:00
Jean-André Santoni
82e67e7605 (Lakka) Use theme font + responsive font size 2014-11-07 15:05:59 +01:00
Jay McCarthy
f2f96bcac8 First draft of ios_menu 2014-11-04 22:01:01 -05:00
twinaphex
4a45308016 Rename gfx/filters and audio/filters to gfx/video_filters and audio/audio_filters
respectively
2014-10-29 07:51:23 +01:00
twinaphex
4f40c14d69 Move menu code up one root dir 2014-10-28 19:54:23 +01:00
twinaphex
6c193836a5 (Cg) Move cg shader variables to struct and allocate it at shader init 2014-10-26 04:49:58 +01:00
Twinaphex
b437565059 Prevent redefinition of struct 2014-10-26 01:09:52 +02:00
twinaphex
46717d1147 Start moving context driver variables to struct that gets
allocated and bound to driver.video_context_data - begin
with GLX context driver first
2014-10-24 03:12:08 +02:00
twinaphex
81c5019afb Move miscellaneous header over to libretro SDK 2014-10-21 08:39:37 +02:00
twinaphex
d3e16f045a Fix up Salamander 2014-10-21 08:18:45 +02:00
twinaphex
7472922ee0 Move compat/ over to libretro SDK 2014-10-21 07:58:58 +02:00
twinaphex
480cd7c7ba Move msvc_compat.h to compat/ dir 2014-10-21 06:06:12 +02:00
twinaphex
c62d52de0f Start properly implementing libretro SDK for boolean.h include
header, glsym, and rthreads
2014-10-21 05:05:52 +02:00
twinaphex
ec002b5f5c driver.h - Indenting nits 2014-10-15 06:23:04 +02:00
Mike Robinson
63741eeb57 Pass flags to init_drivers/uninit_drivers
Allow init/uninit of specific drivers instead of all.
2014-10-09 05:16:00 +01:00
Jean-André Santoni
7018d58731 (XMB) Initial commit 2014-10-09 01:21:22 +02:00
twinaphex
bcd5f8aa5b Add has_windowed to video driver and graphics context driver 2014-10-08 17:23:02 +02:00
twinaphex
c35d25c76e Add RARCH_CMD_NETPLAY_FLIP_PLAYERS and RARCH_CMD_FULLSCREEN_TOGGLE 2014-10-08 16:41:08 +02:00
AndresSM
7249ebc00c fix disk_next, add option for disk_prev 2014-10-07 20:19:12 -05:00
twinaphex
e0b977215f Rename some macros for bit get/setting 2014-10-05 15:48:06 +02:00
twinaphex
52f38412d0 runloop.c - Rewrite check_volume into set_volume 2014-10-05 06:10:23 +02:00
twinaphex
54c2522979 Refine check_oneshot function - we no longer need g_extern.is_oneshot
anymore
2014-10-05 05:18:46 +02:00
twinaphex
40186be4cc Add TODO note to driver.h 2014-10-04 14:30:01 +02:00
SuperrSonic
1a98cacee8 Deflicker stuff 2014-10-04 01:27:38 -04:00
twinaphex
4f30e1a3d7 A lot of functions could be made static in driver.c 2014-10-03 12:51:02 +02:00
Mike Robinson
b165b8fa82 Fix joypad driver setting
input_common.c was loading the first available joypad driver no
matter what input driver was selected, and the joypad driver menu
was non-functional. Allow choice of joypad driver from the menu.
2014-10-03 01:40:47 +01:00
twinaphex
c861b4f994 Move gl_wrap_type_to_enum to gfx/gl.c 2014-10-02 01:02:13 +02:00
twinaphex
ca12482af0 Move shader files to gfx/shader/ 2014-10-02 00:45:11 +02:00
twinaphex
0135d763db Move g_extern.netplay to driver.netplay_data 2014-10-01 23:00:05 +02:00
twinaphex
dead11f182 Move driver_active variables over to driver global 2014-10-01 22:34:48 +02:00
twinaphex
a35c61ec90 (Audio driver) Add 'alive' function callback 2014-10-01 21:42:19 +02:00
twinaphex
1a94f14e50 Move recording and resampler drivers to 'driver' global struct -
moving it outside of g_extern
2014-09-30 21:23:00 +02:00
Vladimir Panteleev
d0e970f175 Fix/reimplement input flushing
This fixes:

- menu toggle erratically not working on Android
- stray input going to libretro core when resuming content
- bound keys triggering as soon as they're bound on Android
- menu key repeat also repeating keys which should not be repeated
- issues caused by relying on timeouts for flushing

Architectural changes:

- menu_ctx_driver_t::input_postprocess now takes state and old_state
  (this allows getting rid of menu_handle_t::trigger_state)

Related changes:

- remove some no-op input_postprocess handlers (same effect as NULL)
- menu_iterate now uses the parameters passed to it, instead of
  polling menu_input
- menu_input is now merged into meta_input_keys_pressed
2014-09-29 12:58:52 +00:00
Vladimir Panteleev
85f745e587 Document some input-related variables 2014-09-29 12:56:31 +00:00
twinaphex
ddf5786ad7 Take out unused ANALOG_DPAD_DUALANALOG 2014-09-26 13:32:03 +02:00
twinaphex
eec0724175 Reimplement FLUSH_INPUT 2014-09-25 04:58:26 +02:00
twinaphex
aa6d779fbc Added 1-second timeout when binding hotkeys 2014-09-25 04:44:24 +02:00
twinaphex
2309a3e716 Move input_poll to libretro_version_1.c 2014-09-24 09:52:01 +02:00
twinaphex
63680ca5b4 Go through static variable retro_ctx for libretro backend
functions
2014-09-23 03:55:19 +02:00
Alcaro
ef4fbc752d Merge branch 'master' of github.com:libretro/RetroArch 2014-09-20 00:08:56 +02:00
Alcaro
af2d5ed53f Move this to the bottom for consistency with the other null drivers. 2014-09-20 00:03:35 +02:00
twinaphex
e5c22e3e54 Refactor check_enter_menu 2014-09-19 22:41:40 +02:00
twinaphex
f16a065cdd Fixes 'block hotkey enable' 2014-09-18 04:04:33 +02:00
twinaphex
4c4ae11ab6 Optimizations to input handling in rarch_main_iterate - pass
'trigger' state around
2014-09-17 20:15:56 +02:00
twinaphex
82806dcd85 Hide away last BIND_PRESSED invocations with check_quit_key_func 2014-09-17 17:48:41 +02:00
twinaphex
f7061e7233 Rewrite check_pausegp 2014-09-17 17:45:44 +02:00
twinaphex
3892c8326d Use macro functions to hide away some of the ugliness 2014-09-17 07:38:49 +02:00
twinaphex
191f0b6383 Move input_key_pressed to input_common.h 2014-09-16 07:02:57 +02:00
twinaphex
a09e04f679 Split up driver_menu.h into three separate header files -
for menu display API, menu backend API, and menu driver general API
2014-09-16 00:52:07 +02:00
Higor Eurípedes
85cef84bd4 (driver.c) Add driver_video_resolve()
This function returns the real video driver data when threaded video is
in use.
2014-09-12 17:26:26 -03:00
twinaphex
75d2e13dcb Make drivers non-const 2014-09-11 07:06:20 +02:00
Jean-André Santoni
5e433abf8b (GLUI) GL based RGUI display driver clone 2014-09-11 04:07:07 +02:00
twinaphex
aade2b45ef Style / indent nits 2014-09-09 05:24:32 +02:00
twinaphex
9d783b6627 Style cleanups 2014-09-07 05:47:18 +02:00
twinaphex
ceb4e05e88 Cleanups - C-style comments, 80-char limit, etc 2014-09-02 04:43:31 +02:00
twinaphex
a44665bcae Refactor prev/next driver settings 2014-08-31 19:06:32 +02:00
twinaphex
5c2006c072 Remove extraneous elses 2014-08-27 02:06:39 +02:00
twinaphex
9287d6363f Remove unused keybind_set_id 2014-08-27 01:04:19 +02:00
twinaphex
31e7f1009d Refactor find_prev/find_next menu driver functions 2014-08-26 23:19:48 +02:00
twinaphex
d05d909373 Get rid of some duplicate get_prev/get_next functions 2014-08-26 23:11:35 +02:00
twinaphex
3cfe954b74 Combine all driver_index* functions 2014-08-26 20:32:48 +02:00
twinaphex
a468d9e860 Remove unused menu_ctx_find_driver 2014-08-26 20:18:53 +02:00
twinaphex
6a8ccc3844 Move DEFAULT_SHADER_TYPE from driver.h to gfx/shader_common.h 2014-08-26 19:48:56 +02:00
twinaphex
4dea8caa6f (SoftFilter) Refactor most code associated to SoftFilter plugin - load .filt
files instead of the dynamic libraries directly. Options can be
set in the config file.

There's still a problem with config file options - will work this
out later.
2014-08-19 19:38:33 +02:00
twinaphex
a3e8a18d8f Get rid of CONSOLE_MENU enums 2014-08-15 20:54:51 +02:00
twinaphex
d5de35935c Get rid of driver_funcs.h 2014-08-15 20:53:49 +02:00
twinaphex
0966d384d8 (OSK) Get rid of HAVE_OSK ifdef 2014-08-14 06:40:33 +02:00
twinaphex
e1a122843b Add null camera - remove HAVE_CAMERA ifdefs 2014-08-14 02:55:04 +02:00
twinaphex
027bd68bb3 Add location/null.c - get rid of HAVE_LOCATION ifdefs 2014-08-14 02:15:48 +02:00
twinaphex
12c0311f04 (Input) Get rid of unused devices_size 2014-08-14 00:56:40 +02:00
twinaphex
fab7792058 Get rid of set_keybinds - no longer used 2014-08-14 00:49:28 +02:00
Higor Eurípedes
b6df19dffb (SDL*) Merge input drivers 2014-08-11 19:47:30 -03:00
Twinaphex
0998c5a203 Merge pull request #866 from SuperrSonic/master
Basic video encoder changer (viWidth), affects GC/Wii only
2014-08-11 10:57:01 +02:00
SuperrSonic
ba0fba655e added viwidth stuff 2014-08-10 16:45:55 -04:00
Higor Eurípedes
46beb117ef (SDL2) Add input driver 2014-08-10 15:00:21 -03:00