Commit Graph

341 Commits

Author SHA1 Message Date
Themaister 76ef249982 Add missing MOUSE_MIDDLE. 2014-04-25 23:44:53 +02:00
Themaister a64da5d5ff We don't support SDL 2.0 anyways. 2014-04-25 23:40:20 +02:00
twinaphex b6e5b54091 Add note to sdl_input.c regarding mouse wheel up/down 2014-04-25 21:50:46 +02:00
twinaphex 771c7e20b7 Add mouse wheel up/down support to libretro.h - also add preliminary
support for these buttons to 'some' input driver implementations
2014-04-25 21:35:13 +02:00
twinaphex 569de131a0 Move device enums outside of driver.h - and create new callback
for 'getting' the number of 'devices' the input driver supports
2014-04-17 20:47:43 +02:00
Themaister 89e48d3f1b Only accept key releases. 2014-04-13 19:51:10 +02:00
Themaister 39ef5d8e03 Don't accept hotkeys until key has been released.
Avoid quitting RetroArch immediately after Quit RetroArch bind.
2014-04-13 19:47:32 +02:00
Themaister 255e43966a Implement basic keyboard binding in RGUI. 2014-04-13 12:12:12 +02:00
twinaphex fd7f4d45cd Move image files to gfx/image/ 2014-02-25 21:24:15 +01:00
Themaister 712ab89ebb Check KEY_UP to KEY_DOWN in udev joypad.
Wiimote classic uses this for some odd reason ...
2014-02-20 08:23:17 +01:00
pinumbernumber ecdf175006 fix tiny leak 2014-02-04 19:59:15 +00:00
Themaister 860dfc61e6 Only warn if udev detects no input. 2014-01-24 10:20:10 +01:00
pinumbernumber 09651cbe21 Hopefully improved detection of third-party dual xinput/dinput pads 2014-01-23 21:57:19 +00:00
Royerson a13dd7a6fc Add name to xinput pad list
"Controller (GPX Gamepad)"
2014-01-22 22:52:49 -07:00
twinaphex 460670f074 Move sensor value reading to retro_sensor_interface 2014-01-20 14:52:53 +01:00
Themaister 682bd74a28 Only destroy dinput if non-NULL. 2014-01-16 08:17:20 +01:00
OV2 34561b3708 win32: detect joypad changes 2014-01-16 00:04:56 +01:00
Themaister af7fb86427 Fallback if mouse or keyboard interface is not working.
Problems with tablets on Windows.
2014-01-15 17:35:23 +01:00
Themaister 2c60dfb8cf Add some more error logging to dinput. 2014-01-11 18:11:00 +01:00
Twinaphex 165698b9f2 Merge pull request #481 from libretro/dpad-map
Analog D-pad mapping
2014-01-08 12:01:39 -08:00
Themaister 67e7628568 Rename input_find_sk_key.
Matches up better with the conventions in input_common.
The sk-prefix was from SSNES days (how things linger on ... D:)
2014-01-08 18:24:54 +01:00
meancoot c786483635 Expand config key map table; have overlay’s use it to look up key names. 2014-01-08 12:16:22 -05:00
Themaister f57a1aa032 Add support for mapping analogs to D-pad again.
Use a cleaner approach which can feasibly work on all platforms.
Uses input_push/pop_analod_dpad to modify the joyaxis field before
polling input. This way, the RetroPad D-pad binds can inherit the
joyaxis fields from ANALOG_LEFT_X_PLUS and friends.

Also add support for the field in RGUI and saves settings.
2014-01-08 17:31:14 +01:00
Themaister 35c485aab0 Reuse bind maps in input_common for overlay. 2014-01-07 17:14:09 +01:00
Themaister 5b4ebb3fa1 Build fix for overlay.
Compute keyboard mod state once.
Fix C++ 'new' usage.
2014-01-06 19:42:46 +01:00
Twinaphex e7cf6d1672 Merge pull request #461 from libretro/kb_overlay
Support for keyboard keys on overlays.
2014-01-06 05:51:05 -08:00
Higor Eurípedes 1f8c114641 Use C linkage in frontend.h and input_common.h 2014-01-05 23:28:34 -03:00
twinaphex 54f0fb5319 (Wii) Bump up version 2014-01-04 22:52:26 +01:00
meancoot f55bac7f7e (Overlay Keyboard) Use 1 bit per key to store state. 2014-01-02 23:37:18 -05:00
meancoot 1ff9630d74 Add support for mapping keyboard keys to input overlays. 2014-01-02 16:42:28 -05:00
twinaphex 0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
Themaister 0d3428ad15 Add texture_image_free().
Cleans up deinit code for textures.
2013-12-31 19:16:29 +01:00
Themaister 132c3c46f7 Use struct texture_image instead of video_overlay_image. 2013-12-31 19:05:16 +01:00
Themaister 43f42b6439 Use correct size with calloc. 2013-12-31 18:55:15 +01:00
Themaister 0e47ad02fe Saturate analogs based on range and not range mod. 2013-12-31 18:42:49 +01:00
Themaister e164457c02 Add support for movable overlay elements.
Very useful for visual feedback of analog controls.
2013-12-31 17:15:28 +01:00
Toad King c8677891e1 fix overlay alphas for multiple button presses 2013-12-26 21:39:07 -05:00
Toad King da75ee5a88 don't update overlay ranges until all events are polled 2013-12-26 20:38:12 -05:00
Themaister 58f8cde980 Fix PC build. 2013-12-24 11:11:25 +01: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
Themaister f7a5853154 Fix CXX_BUILD. 2013-12-10 19:42:50 +01:00
Themaister 977cec1378 Refactor keyboard event callbacks.
Go through input/keyboard_line.c to better hide internal logic
regarding keyboard line input.
2013-12-10 19:39:09 +01:00
Themaister 4d8c094bdf Disable TTY input when using udev.
Avoids possible commands being entered while playing.
2013-12-09 17:02:23 +01:00
Themaister d21046ace8 Add keyboard layout support to udev.
Adds input_keyboard_layout setting.
2013-12-08 16:05:05 +01:00
Themaister 3a8608fb70 Handle key_event in udev.
Use libxkbcommon for this.
2013-12-08 01:09:00 +01:00
Themaister 0bd31ef6d4 Handle touch events properly. 2013-12-07 22:16:19 +01:00
Themaister 67a3415dcf Start implementing touchpad. 2013-12-07 22:09:08 +01:00
Themaister 6e40916d0a Implement hotplugging for input devices as well. 2013-12-07 17:12:25 +01:00
Themaister 2b04f50b23 Use epoll to support multiple input devices. 2013-12-07 16:11:51 +01:00
Themaister f4d79eaf0e Fix minor crash and mouse. 2013-12-07 14:16:17 +01:00