Commit Graph

1797 Commits

Author SHA1 Message Date
twinaphex a6ccc188a8 Rename input_common.c to input_config.c 2015-11-28 02:22:58 +01:00
twinaphex 70d782b94a Rename functions to fit input_config_ naming convention 2015-11-28 02:13:27 +01:00
twinaphex 28e035ec6b Move functiosn around 2015-11-28 02:09:11 +01:00
twinaphex f4b61bd164 Make one static function 2015-11-28 02:05:15 +01:00
twinaphex 7ca0d74005 Don't expose struct in header anymore 2015-11-28 00:59:47 +01:00
twinaphex 0b0b3431b0 Go through input bind map wrapper functions 2015-11-28 00:57:57 +01:00
twinaphex 0ca0bd182b Don't expose input_bind_map outside anymore 2015-11-28 00:51:33 +01:00
twinaphex 1f5b121505 Create input_get_bind_map_base 2015-11-28 00:44:34 +01:00
twinaphex 222b9a2113 Fix CXX_BUILD 2015-11-28 00:40:11 +01:00
radius 9312b1fe33 merge with upstream 2015-11-27 18:20:35 -05:00
radius d8badc2ad8 enable polling the remote gamepads 2015-11-27 18:15:41 -05:00
radius fe9700ebda add input polling code 2015-11-27 18:08:56 -05:00
radius ac1695e7fd open different sockets per-user 2015-11-27 18:08:52 -05:00
twinaphex a8d868f187 (Android) Implement 'focused' callback for androidegl_ctx 2015-11-27 20:38:29 +01:00
twinaphex a1ecc5eee3 (Android) Some cleanups in engine_handle_cmd 2015-11-27 18:27:30 +01:00
twinaphex daeb8cacaf Set idle when APP_CMD_LOST_FOCUS 2015-11-27 00:23:47 +01:00
twinaphex cb98cbc1bf Create RARCH_INPUT_CTL_POLL 2015-11-25 20:39:46 +01:00
twinaphex df948215af Some C89_BUILD fixes 2015-11-25 19:27:33 +01:00
Twinaphex 5b8661b6b5 Merge pull request #2468 from fr500/master
add a hint so the user can tell between devices with the same name
2015-11-25 19:25:56 +01:00
twinaphex 77e4faf5ea Move code around 2015-11-25 18:53:54 +01:00
twinaphex 9643edfac7 Create RARCH_INPUT_CTL_DESTROY 2015-11-25 18:49:37 +01:00
twinaphex 73ce9c0d23 Add another RARCH_INPUT_CTL_* command 2015-11-25 18:33:18 +01:00
twinaphex 92c0907e80 Create more RARCH_INPUT_CTL_* commands 2015-11-25 18:29:28 +01:00
twinaphex 14b2b8ada7 Start creating input_driver_ctl 2015-11-25 18:21:21 +01:00
radius 3ac80f6864 add a hint so the user can tell between devices with the same name 2015-11-24 22:30:51 -05:00
twinaphex 08ae9df639 Merge input_sensor.c with input_driver.c 2015-11-25 03:29:18 +01:00
twinaphex c9db73e944 Contain driver->input_data usage pt. 2 2015-11-25 03:25:31 +01:00
twinaphex d2f771440b Contain driver->input_data usage 2015-11-25 03:15:22 +01:00
Higor Eurípedes 29e9b87319 (tasks) Make task handles honor task->cancelled 2015-11-24 22:18:09 -03:00
Twinaphex 8a5ba85c9a Cleanups 2015-11-24 20:25:31 +01:00
twinaphex f04f4c89c8 Turn another function static 2015-11-24 02:18:41 +01:00
twinaphex 1639f27f8c Turn check_block_hotkey into static function 2015-11-24 01:54:21 +01:00
twinaphex 909ee01012 Move input_state code to input_common.c 2015-11-24 01:19:48 +01:00
twinaphex 075a4891dc Buildfix/move input code around 2015-11-24 01:18:00 +01:00
twinaphex 60dd3fe8b3 Move input_data related code to input/input_common.c 2015-11-24 00:53:47 +01:00
twinaphex a3e52a9369 Put M_PI inside retro_miscellaneous.h 2015-11-24 00:05:37 +01:00
Higor Eurípedes 46ec7562c1 (overlay) Fix behavior when overlay_hide_in_menu=true 2015-11-23 17:43:37 -03:00
Higor Eurípedes 6f88ece9ab (overlay) Fix memory leak 2015-11-23 17:43:33 -03:00
Higor Eurípedes 9654fabe77 (overlay) Fix on screen keyboard 2015-11-23 17:42:01 -03:00
Higor Eurípedes 52e3b03546 Remove some uneeded prototypes 2015-11-23 17:42:01 -03:00
Higor Eurípedes a0d2bb4c7c Reimplement overlay loading with tasks 2015-11-23 17:42:01 -03:00
Alcaro 7b66b65823 Add some error messages if the null drivers are used. 2015-11-23 19:42:46 +01:00
twinaphex 389cf13db5 Don't reference driver->video_data outside of gx/video_driver.c anymore 2015-11-23 18:51:04 +01:00
twinaphex c7dc83533a Add param to video_driver_get_ptr for grabbing the nonthreaded
data state
2015-11-23 16:06:09 +01:00
twinaphex 60fec26bcf (sdl_input.c) Use video_driver_get_ident 2015-11-23 14:57:24 +01:00
twinaphex 9b41061143 Rename driver->video 2015-11-23 14:14:12 +01:00
twinaphex ee733fcd0f (input_overlay.c) Go through video_driver_get_ptr 2015-11-23 13:24:20 +01:00
twinaphex b434689d39 (Win32) Buildfixes 2015-11-23 12:14:53 +01:00
twinaphex 074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex 806c124eae Merge video_viewport.c and video_driver.c 2015-11-21 13:01:23 +01:00
twinaphex 5cea9e5400 Add RARCH_DISPLAY_CTL_IS_FOCUSED 2015-11-20 15:24:24 +01:00
Marco Bonardo 03f0c0339d Poll sliders in joypad dinput driver
Poll sliders position as additional axes in the directinput joypad driver
2015-11-19 02:39:50 +01:00
Twinaphex e27d533fcd (iOS/Cocoa) Try this - prefer MFi analog value over BTStack one 2015-11-18 05:37:41 +01:00
Twinaphex d399bc11e2 (MFi) Reimplement analog support 2015-11-18 04:54:08 +01:00
Twinaphex 352a8acdf5 Merge pull request #2424 from Yogarine/master
Fix rwebinput driver
2015-11-18 02:49:51 +01:00
Alwin Garside e5b0a5858a Fix rwebinput driver
input/drivers/rwebinput_input.c:
 -  rwebinput_key_pressed() was defined twice. Not sure why, but removed the first instance of it.
 -  in rwebinput_input_state() the device was hardcoded to INPUT_DEVICE_TYPE_NONE which would result in it always returning 0
2015-11-18 02:45:41 +01:00
Alwin Garside 83d63fcdd1 Merge remote-tracking branch 'libretro/master' 2015-11-18 02:12:47 +01:00
Twinaphex bcaa2f9aa7 (BTStack) Another buildfix 2015-11-18 02:12:05 +01:00
twinaphex 80d44ce333 (btstack_hid.c) Buildfixes 2015-11-18 02:11:06 +01:00
twinaphex 5edcb99b35 (btstack_hid.c) Cleanups 2015-11-18 02:06:03 +01:00
twinaphex 37d45643f9 (BTStack) Move btpad_set_inquery_state calls to btstack_hid.c 2015-11-18 01:57:45 +01:00
Alwin Garside 58748da89d Emscripten related fixes.
- audio/audio_dsp_filter.c:  append_plugs() should only be called if HAVE_DYLIB
- emscripten/library_rwebaudio.js: Performance improvements, and fallback support for browsers that don't support the Performance API. (e.g. mobile Safari)
- emscripten/library_rwebinput.js: Improve mouse handling. Still not optimal, but works with browsers that don't support mouse capturing.
- frontend/drivers/platform_emscripten.c: Added global function for easy access to certain RetroArch features from JavaScript.
- gfx/video_driver.h: Disabling HAVE_MENU incorrectly disabled set_texture_enable()
- input/drivers/rwebinput_input.c: Missing header file: "../input_joypad.h".
- Makefile.emscripten: Cleanup and make sure the appropriate functions are exported.
2015-07-17 12:46:08 +02:00
twinaphex 450c665619 Create meta_key_pressed 2015-07-17 03:31:51 +02:00
twinaphex 8162b77bae Whitelist menu_toggle key 2015-07-17 03:12:52 +02:00
twinaphex a2af5252c1 Get rid of input_driver_key_pressed 2015-07-17 03:09:12 +02:00
twinaphex f1d8f98c90 Refinement on earlier revert 2015-07-17 02:59:03 +02:00
twinaphex 63582f83b1 Revert "Optimize input_driver_keys_pressed and make it possible to"
This reverts commit 5d87c697bb.
2015-07-17 02:58:26 +02:00
twinaphex f5566cbe3b Cleanup warnings 2015-07-16 10:11:28 +02:00
fr500 ca682d38eb better shield portable hack 2015-07-16 03:22:28 -04:00
twinaphex 56f273b0b5 Put in the Nvidia Shield hack back in for Shield Portable
explicitly
2015-07-15 06:26:32 +02:00
twinaphex a6bbc31f95 (GX) Header buildfix 2015-07-14 06:14:13 +02:00
Twinaphex f2ee781e92 Merge pull request #1959 from netux79/master
Fixed nunchuk controller support, it was not correctly detected.
2015-07-14 06:03:34 +02:00
Jose Ernesto Ramirez Ramirez 09f3c3ca77 Fixed nunchuk controller support, it was not correctly detected.
Fixed classic controller's analogs, were not working at all.
Restored sixaxis controller support, now with completely rewroten library.
Changed detection order (GC, Sixaxis, Wiimote/Nunchuck/Classic, left wiimote at the end, otherwise we needed to disconnect it to be able to use GC controller or sixaxis controller.
2015-07-13 22:58:01 -05:00
radius 39e15c983b Merge branch 'master' of github.com:libretro/RetroArch 2015-07-12 15:30:09 -05:00
radius 82feadd350 fix vid/pid saving for dinput, need to add it to other drivers 2015-07-12 15:29:49 -05:00
twinaphex 5ac2ac62a3 Add dot to message end 2015-07-12 21:55:21 +02:00
radius a480ad285b simplify the OSD message a bit more 2015-07-12 14:28:39 -05:00
Twinaphex 1ff9f89e7d Merge pull request #1952 from fr500/master
Proposals
2015-07-12 21:13:01 +02:00
radius 6f9467817e Shield Fix 2015-07-12 13:56:34 -05:00
radius 26b7ccead9 add a display_name field if available so the user can know which autoconf was used 2015-07-12 13:45:17 -05:00
twinaphex 117fd48f15 Get rid of some superfluous wrapper functions 2015-07-12 11:14:41 +02:00
twinaphex 7fb1265227 (PSP/CTR) Should fix lifecycle state menu toggling 2015-07-12 10:46:20 +02:00
twinaphex 23348f41ac (GX) Menu button toggle should work again 2015-07-12 10:41:49 +02:00
twinaphex b908b1083b (input_driver.c) small micro-opts 2015-07-12 09:28:24 +02:00
twinaphex 5d87c697bb Optimize input_driver_keys_pressed and make it possible to
pass more 'keys' to the input key pressed callback than just
the standard buttons
2015-07-12 09:08:27 +02:00
twinaphex 2a881d64be Name some functions the same across drivers 2015-07-12 08:51:13 +02:00
twinaphex fbc504acfe Turn one C++ comment into C 2015-07-12 08:46:41 +02:00
twinaphex 32b3aa6b00 (Cocoa) cocoa_input.c - Simplifications 2015-07-12 08:45:12 +02:00
twinaphex c2c9ace028 Input driver's 'input_key_pressed' implementation does not
have to query for overlay state - this is done in an upper-level
function already
2015-07-12 08:39:34 +02:00
twinaphex bbc63f7e99 Fix CXX_BUILD 2015-07-12 08:08:27 +02:00
twinaphex 135ee2f503 Use UINT64_C(1) everywhere instead of 1ULL 2015-07-12 07:53:46 +02:00
twinaphex ae14d8c78a (input_overlay.c) Cleanups 2015-07-12 07:42:14 +02:00
twinaphex b3e054a946 (input_overlay.c) Turn more functions static 2015-07-12 07:32:51 +02:00
twinaphex a0b2e4881a (input_overlay.c) Some more simplifications 2015-07-12 07:28:28 +02:00
twinaphex c9814c9b12 (Overlay) Don't expose input overlay handle to outside 2015-07-12 07:22:52 +02:00
twinaphex 2dbc3c4b56 (Overlays) Cleanups 2015-07-12 07:12:33 +02:00
twinaphex 599ed62849 (Overlay) Refactor some more code 2015-07-12 07:03:39 +02:00
twinaphex 86e7f34666 Create input_overlay_key_pressed 2015-07-12 06:54:35 +02:00
twinaphex 1a4954ce55 Move more code to input_overlay.c 2015-07-12 06:47:39 +02:00
twinaphex af752ba24b (PS3) ps3_input.c - cleanup 2015-07-12 02:55:29 +02:00
twinaphex 9e61a5ebf4 (udev_input.c) Cleanup add_device 2015-07-12 02:44:53 +02:00
twinaphex 0107be2485 (GX) Refactor controls 2015-07-12 01:58:43 +02:00
twinaphex 2bdce53651 (PSP) Refactor input code 2015-07-12 01:55:51 +02:00
twinaphex 69a406809e (CTR) Refactor code 2015-07-12 01:53:32 +02:00
twinaphex 028c9b5e3c (input_overlay.c) Some more safety checks 2015-07-12 01:33:14 +02:00
twinaphex 01415528c6 (libusb) Update 2015-07-12 01:08:53 +02:00
twinaphex 2121f7a813 Create overlay->alive 2015-07-11 23:45:23 +02:00
twinaphex 5749d5e034 Rename overlay_state_ptr to overlay_st_ptr 2015-07-11 22:45:02 +02:00
twinaphex 396b08513a input_overlay_free_overlay - prevent 'free' on not malloced pointer 2015-07-11 22:07:05 +02:00
twinaphex 17024c4056 (input_overlay.c) Attemp to simplify input_overlay_load_texture_image 2015-07-11 22:03:21 +02:00
twinaphex 5fd65afae1 Have to call config_file_new at the start of every overlay function
and config_file_free at the end of every function
2015-07-11 20:49:04 +02:00
twinaphex 6e63f562ea (D3D) Buildfix 2015-07-11 19:47:20 +02:00
Twinaphex 70607acb6b Turn overlay_state_ptr into non-pointer 2015-07-11 18:22:23 +02:00
twinaphex c3f5ea0fcc Make input_overlay.h no longer depend on RPNG image 2015-07-11 08:14:39 +02:00
twinaphex 1b163e6a5a Cleanup input_overlay.c 2015-07-11 08:07:14 +02:00
twinaphex 70b423cc3e Move config_file.h dependency out of input_overlay.h 2015-07-11 07:51:34 +02:00
radius 88c4b2415d print osd messages on save 2015-07-10 23:13:37 -05:00
radius da7a75f0fb cleanup some duplicate code and make it prefer the drivername subdir if it exists 2015-07-10 22:56:44 -05:00
radius 63ce5ee4c0 make the first match work too 2015-07-10 22:36:28 -05:00
radius 0ea522585d add a function to save controller profiles 2015-07-10 20:15:14 -05:00
twinaphex 6f99b4d381 (Android) Implement 'Back As Menu Toggle Enable' setting 2015-07-11 03:13:38 +02:00
twinaphex 2f9e8b44e3 (input) Get rid of remaining unused global pointers 2015-07-10 19:08:58 +02:00
twinaphex f50751909c (QNX) Don't depend on global state for input driver 2015-07-10 18:52:23 +02:00
twinaphex 2eab572773 (CTR) Don't depend on global state in input driver 2015-07-10 18:51:04 +02:00
twinaphex 2698d4622a (PSP) Don't depend on global state in input driver 2015-07-10 18:47:56 +02:00
twinaphex 25ffeb1ed9 (Xenon) Don't depend on global state in input driver 2015-07-10 18:45:22 +02:00
twinaphex e2d510e4f6 (GX) No longer depend on global pointer in input driver 2015-07-10 18:44:11 +02:00
twinaphex b6609d576b Build fixes when HAVE_OVERLAY is not defined 2015-07-10 18:37:25 +02:00
twinaphex 8fc5c85589 Move keymaps to input drivers 2015-07-10 09:55:29 +02:00
twinaphex b501e19dc4 input_autodetect.c - cleanup 2015-07-10 09:15:55 +02:00
twinaphex 5e634a48ce (input_autodetect.c) Some C89/C90 build fixes 2015-07-10 09:06:00 +02:00
twinaphex a2c1a3e82b Buildfix 2015-07-10 07:16:21 +02:00
twinaphex feb661754b Make it look at the joypad driver's name for subdirectory instead of
the input driver's name
2015-07-10 07:05:36 +02:00
twinaphex 84066d569c Put #if 0 around unused function 2015-07-10 06:59:14 +02:00
radius 7b45800ff9 make it look in the top level directory first, if no profiles look in the driver name subdir 2015-07-09 23:51:39 -05:00
radius 15a3aa134a make it look under autoconf\drivername 2015-07-09 23:12:35 -05:00
radius 2f26eac396 declare variables on top 2015-07-09 22:54:49 -05:00
radius cec1f3408f declare variables on top 2015-07-09 22:52:52 -05:00
radius 9d268aba54 refactor input autoconfiguration to use a score system 2015-07-09 22:46:28 -05:00
radius c604b44672 add vid/pid to dinput 2015-07-09 20:39:43 -05:00
twinaphex e99a23a5e2 (Android) More cleanups 2015-07-10 00:36:46 +02:00
twinaphex dc96b4820f (Android) Cleanup android_input.c 2015-07-10 00:27:05 +02:00
twinaphex 34414b5919 Menu toggle should be properly saved now with custom bind - the
forced hack broke all sorts of behavior
2015-07-09 22:16:27 +02:00
twinaphex ab604524dc (Android) Get rid of some more hardcoded stuff 2015-07-09 21:39:47 +02:00
Jools Wills 9fb753410e cosmetic - fix incorrect tab indentation introduced by 141dbabe3d 2015-07-09 20:03:36 +01:00
twinaphex c82ca15c91 (input_common.c) Fix two small leaks 2015-07-09 19:54:46 +02:00
twinaphex 7867c3ee74 (dinput_joypad.c) Cleanup 2015-07-09 18:45:48 +02:00
Twinaphex b91f310b60 Merge pull request #1934 from fr500/master
Add VID/PID to the joypad struct
2015-07-09 18:44:46 +02:00
radius af978297e2 fix nits 2015-07-09 11:31:05 -05:00
radius 141dbabe3d add VID/PID to the dinput_joypad struct 2015-07-09 11:29:04 -05:00