summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
AgeCommit message (Collapse)Author
2010-06-02Fix some cases of variables being used uninitialized. Also some unusedSoren Jorvang
variables, writeable strings and dangerously shadowed variables. index(), gamma(), exp() and y0() are POSIX functions and using those names can cause namespace confusion. A number of C files were missing the final newline required by ANSI C and some versions of GCC are pedantic enough to complain about this. These changes simply the scons build, allowing us to get rid of filterWarnings which is simply more trouble than it's worth. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5574 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-02Meta:Soren Jorvang
Using Unix tools to operate on a tree containing filename with spaces in them is really annoying, so rename the handful of instances where there were spaces. Host.cpp has never been used. Games tend to lookup the following directories that we don't yet have anything to put in, so prepopulate them in Data/User/Wii: title/00010001 title/00010002 title/00010003 title/00010004 title/00010005 title/00010006 title/00010007 meta shared2/title Set eol-style native on a number of text files which didn't already have it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5572 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-29Changed both video plugins to save PNG screenshots. Made GCPad New default ↵Jordan Woyak
in trunk (it already is in stable). Fixed a hack in new wiimote plugin. Other minor changes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5532 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-26Exceptions are not allowed.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5491 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-29New Wiimote Plugin: Added "Upright Wiimote" option. Fixed a nunchuk problem ↵Jordan Woyak
in ZTP and Wii Sports with some Hacks. Some work on emulated Swing and Speaker (disabled). Fixes/Cleanups. ControllerInterface: Fixed an issue when a DInput device reports the same axis more than once. Fixed some old comments. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5422 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-27osx input: remove some debug code...Shawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5418 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-27osx input: scale mouse axes more nicelyShawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5417 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-27osx input: now supports mice(buttons + axes). also less crashes :pShawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5416 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-27osx keyboard: add pretty names for keys.Shawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5415 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-25cleanup some osx keyboard code...still can't get mouse or hid transactions ↵Shawn Hoffman
to work (although supposedly the kernel caches reports anyways) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5411 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-25oops, don't need ~KeyboardMouse() anymore...Shawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5408 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-25First OSX keyboard stuff...works, with limitations:\nNo Mouse support yet ↵Shawn Hoffman
(Add gamepad via IOKit as well?)\nCould poll less for less cpu time\nDon't know why rumble events don't seem to be sent to the class until right before it's deleted (Billiard?) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5407 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-24More improvements to new wiimote plugin: Added emulated Drums/Guitar ↵Jordan Woyak
extensions. Wiimote rumble now handled for every output report. Fixed some mem leaks. Hopefully fixed a floating point exception in Linux, thanks to glennrics. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5403 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-23osx buildfixShawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5402 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-23Get the wiimote new plugin working in linux. Wiimote emulation works at ↵Glenn Rice
least. Real wiimotes don't. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5399 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-22Improvements to new emulated wiimote plugin: IR cursor works with mouse or ↵Jordan Woyak
analog stick control. Wiimote mii data is saved/loaded to "User/Wii/mii.bin". Background input checkbox works properly. All reporting modes except the interleaved one should work. Fixed a rumble prob with multiple XInput devices. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5396 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-20OS X: enable path in Jit64::stX. fix wxw assert on opening ConfigMain. ↵Shawn Hoffman
__force_align_arg_pointer__ not needed on x64 builds git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5393 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-13Linux compile fix for billard's changes. nakeee
(Had to do it myself since glen is now a windows person :P) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5356 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-13Commited my new wiimote plugin work so far. Some code was copied from the ↵Jordan Woyak
current wiimote plugin. I have cleaned up most of the functions, but there are still a bunch of unused structs and stuff that I need to clean up. Moved ControllerInterface to InputCommon. Moved GCPadNew GUI/Config code to a new project, InputPluginCommon. It is used by both GCPadNew and WiimoteNew. I hope that I included everyone's fixes to GCPadNew and ControllerInterface. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5355 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-12Added files I forgot in last commit.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5337 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-12Big restructuring of how the video plugin works. In linux and windows you ↵Glenn Rice
shouldn't see a change in the functionality; however, there are changes in how render to main or not, and fullscreen modes, and such are handled. Input is largely restructured for the video plugin. It is now handled by the host. Keys for pausing and changing fullscreen are configurable. More will probably be later. This is probably classified as highly experimental. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5336 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-03-17Added several XKeyToString translations.Glenn Rice
Fixed minor font issue with wiimote pad button dialog. Removed unnecessary OpenGL_MakeCurrent call from DoState. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5209 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-16Fixed a few memory leaks. Made Init and Shutdown functions for some core ↵donkopunchstania
systems. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5064 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-07EXPERIMENTAL: an attempt to fix Issue 1725ayuanx
Please test, especially on multi-Wiimote. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5024 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-02Re-added Semi-Pressureayuanx
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4990 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-31Enables detecting pad axes whose range is smaller than usual ones, e.g. from ↵ayuanx
0 to 255 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4987 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-29Fies Issue 1584ayuanx
OSD and Hotkey to do quick config toggling git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4984 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-29Build fixnakeee
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4983 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-29Fixes Issue 2164ayuanx
Conflicts are due to same file name when omitting full path git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4982 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-27Fixes Issue 2125ayuanx
An XInput trigger should not be mapped to a button. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4968 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-27Make arrow and home keys work in wiimote emulator.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4967 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-24Fix the linux keyboard.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4951 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-23Added support for X360pad rumbleayuanx
Need someone who has a X360pad to test. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4929 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-22Merged PadSimple with nJoyayuanx
(Linux build could be broken, X360Pad support could be broken) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4924 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-20This should fix Issue 1982 & Issue 2042ayuanx
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4908 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-31This should fix Issue 1798ayuanx
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4760 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-30* Hides cursor on D3D Fullscreen mode. Fixes Issue 1411fgfemperor
- It's worth noticing that both in OGL and D3D the Config options for Always and Auto Hide Cursor have no effect. I can't get (read) those values in D3DBase.cpp ... * Some more key bindings * Removes duplicate ifdef _Win32 from VKToString * Made VKToString a little faster (smarter) (but don't expect any speedups though...) * Corrects Pal60 name in Config (it was Pal6) I'm still trying to figure out why the Toggle Fullscreen Button doesn't work... Also I really thought about commiting my changes to Wiimote_real, which are tested and working for 1 real wiimote, but I need someone to test them with more than one real wiimote (I only have one)... See Issue 1876 ... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4757 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-28Fix an issue with BPMEM_LOADTLUT, thanks to revned @ issue 1831, also fix a ↵sl1nk3.s
speed issue int the FIFO loop introduced recently (ZWW was ~20% slower) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4739 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-27Now Dolphin officially supports Multi-WiiMote (up to 4)ayuanx
* You can connect/disconnect one or more WiiMote from Menu->Tools any time (must pause game first) * Up to 4 Emulated Wiimotes can work together at the same timer (PS: "Wiimote_Real" needs to be rewritten to support Multi-WiiMote, and it could be broken already now) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4736 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-27Some more key binding fixes. I know I should have made it in just one ↵fgfemperor
commit, I'm sorry, but I forgot to test some keys... This fixes on WiiMote Button Mapping: Num / Num * Num Decimal Num Separator Num Lock Right Alt -> But on keyboards that have "Alt Gr" keys it still gonnal report it as Left Ctrl, because when you press it, the OS sends a Left Ctrl then a Alt key... Also fixes on SimplePad Button Mapping: Num Decimal Num Separator Num Enter Num Lock Right Shift Right Ctrl Right Alt Also it now differs Left (Ctrl|Shift|Alt) from the Right ones... All keys should be working now... I left "Print Scrn" and "Pause" out because I don't think those can (or should) be bound... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4735 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-27Tiny Fix:fgfemperor
Show the correct name for the HOME key when pressed on Button Mapping dialog. (It was displaying "Num 7" when you pressed the Home button (the one above "End")). Yeah, I know, it really is a silly fix... But hey, it's still a fix! =P git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4734 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-17Implemented Nunchuck Roll/Pitchayuanx
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4702 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-14Rearranged EmuWiimote & nJoy. Wow they can share one pad at the same time, ↵ayuanx
and they also can be enabled/disabled separately. So as long as the game supports, you can toggle controller input between them on the fly. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4691 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-09I think this should fix the "Wiimote sudden death after 15 min" issue, ↵ayuanx
actually I announced this was a test in the log message of r4647, but it seems no one has noticed. Added the missing file in last rev. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4664 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-081. Fixed a silly bug that prevented IR rotation in last rev from working, ↵ayuanx
now IR rotation works fine, verified. 2. Added Roll Left/Right key mappings for keyboard. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4659 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-06Implemented Pad Rumble for Emu WiiMote, Currently this function is still ↵ayuanx
quite basic and rough. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4649 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-11-29Now WiiMote button mapping supports both Keyboard & Joypad, or even mixed, ↵ayuanx
no need to bother Xpadder. :) But I've only tested on Win32 SDL, don't know about Linux or 360pad. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4630 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-11-14revert to r4531, but keep the changes from the following revisions: ↵Shawn Hoffman
4533,4550-4551,4556-4559 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4566 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-11-12Wiimote and nJoy > Gamepad changesJohn Peterson
1. Added LiveUpdates, while the configuration window is open nJoy and Wiimote will check for connected/disconnected pads 2. Removed the 'Nintendo RVL-CNT-01' device from the device list, and other SDL devices with no axes/buttons 3. Added SDL (from the current SVN) to get debugging information for SDL.dll 4. Added 'Upright Wiimote' option to emulated Wiimote options git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4534 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-11-11Fix GCC 4.5 Compiling. -fvisibility=hidden seems to break it, so it was ↵Sonicadvance1
removed. Non-POD objects are now errors instead of warnings in 4.5, so I had to remove the wxString::Format. and a Fix where GCC 4.5 introduced strndup. Compiling with nowx=true gave me linker problems for some reason, and I added the -flto flag but commented out. Dunno what it will do yet. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4530 8ced0084-cf51-0410-be5f-012b33b47a6e