Commit graph

81 commits

Author SHA1 Message Date
John Peterson
ca0e807db6 Wiimote: Fixed the speaker status bar status, the status is [Green] [Blue] [Green] that means [On/Off] [Muted/Unmuted] [Activity]
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2142 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-08 12:27:04 +00:00
John Peterson
e926bc61d1 Wiimote: Added logging messages for the speaker configuration and for the 0x18 sound reports, the speaker currently produce a low humming noise in the wpad tools demo, but no real sound
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2141 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-08 10:15:55 +00:00
John Peterson
60e89dfc6f nJoy: Fixed bug that would cause the settings to be lost when nJoy was started without any detected gamepad
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2131 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-07 05:57:28 +00:00
John Peterson
382b4af74b Wiimote: Fixed the dual mode bug I mentioned in the last commit, now the Nunchuck should not get stuck when switching between the real and emulated Nunchuck. The only important problem left is disconnect problem that occurs about one in five times you switch to the real wiimote.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2130 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-07 04:19:52 +00:00
John Peterson
fcdd2a8e17 Wiimote:
1. Fixed the dual mode. You should now be able to change between the real and emulated Wiimote at any time, even when the Nunchuck is connected. It also supports third party Wireless Nunchucks that never sends any calibration values. The Nunchuck status should be automatically updated. The Nunchuck stick may get stuck, but that should fix itself if you disconnect and reconnect again. The only important problems seems to be that the real Wiimote fails to answer sometimes so that the Core functions disconnect it.

2. Began looking at how to reconnect the Wiimote after an unwanted HCI disconnect command

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2129 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-07 03:16:41 +00:00
John Peterson
5df69d0384 Wiimote Configuration: Changed the height of the configuration window to 748 pixels, that should give enough room for it inside a 768 pixels screen height.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2123 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-06 07:09:21 +00:00
John Peterson
6f39549842 Wiimote: Changed a %s to a %u that could cause a crash in WII_IPC_HLE_WiiMote.cpp. Made the configuration window center only if there is room for it, that should fix issue 557.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2122 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-06 07:03:09 +00:00
John Peterson
79f56c9e97 Wiimote: Added GUI controls for gamepad input, not connected yet
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2121 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-06 06:15:59 +00:00
XTra.KrazzY
7cc80c32f9 Fixed Wiimote config window closing (Don't use EndModal if you aren't using ShowModal)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2117 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-05 05:44:16 +00:00
John Peterson
3d73d781ec Wiimote: Reset variables on Shutdown(). I think this makes DoesChannelExist(scid) in the Core to return false.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2116 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-05 00:13:38 +00:00
John Peterson
c9c95534c8 Wiimote: Added timeout for Eeprom data reading, it should fail very rarely, but if it would we now stop waiting for it after two seconds. If it fails it will break the functionality of the real wiimote because g_WiiMotes[i]->ReadData() will not be called by ReadWiimote_ThreadFunc() while we are waiting for it.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2115 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-05 00:02:54 +00:00
Shawn Hoffman
7b7cfa940e remove stuff from ogl debugger that did nothing. (copied from dsp hle a while ago)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2111 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-04 17:33:59 +00:00
John Peterson
c43d8e9dcd Wiimote: Added new gamepad controller options to the GUI, they are not connected yet
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2108 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-04 13:35:28 +00:00
John Peterson
cf303e70e9 Wiimote: Show the decrypted Nunchuck calibration values in the log when a real Wiimote and Nunchuck is used. Fixed an earlier bug that made the neutral emulated nunchuck accelerometer values zero, now they are back to 0x80,0x80,0xb3.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2104 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-04 06:40:05 +00:00
magumagu9
4307803090 A bit more _MSC_VER cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2100 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-04 01:55:24 +00:00
John Peterson
ec39c45dd5 Wiimote: Added decryption function, it could be useful for debugging real Wiimote extensions
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2099 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-04 00:06:11 +00:00
nakeee
c10d69fe07 more MSC_VER
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2098 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-03 23:25:30 +00:00
nakeee
25b7942de2 real Wiimote connects on linux (thanks sonic1!)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2097 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-03 23:05:31 +00:00
nakeee
9981670e37 removed more MSV_VER
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2095 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-03 22:46:18 +00:00
nakeee
a1b7a91348 I mean * honestly :)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2094 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-03 22:09:13 +00:00
nakeee
bde4241e9e fixed underrun buffer in hle on linux
made wiimote compile on linux again


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2093 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-03 22:06:18 +00:00
John Peterson
4660943322 Wiimote: Added option to record adjusted wiimote accelerometer values
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2089 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-03 11:45:59 +00:00
John Peterson
1ead45ca04 Wiimote: Fixed slight oversight in the last commit
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2086 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-03 09:39:35 +00:00
John Peterson
5972f886ab Wiimote: Fixed the hanging for real. Any call to a function in the wxDialog frame class while the main thread is in a WaitForSingleObject() loop or any other loop will hang the g_pReadThread execution until sometime after that loop has ended. So we must wait for pReadThread to stop from the wxDialog with a timer, we can not use any loop in the main thread to wait for it to stop.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2083 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-03 07:43:52 +00:00
John Peterson
d6c0d5b977 Wiimote: Fixed semi-frequent hanging that would occur when closing the configuration window
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2080 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-03 04:03:56 +00:00
John Peterson
4f4469545e Wiimote: Made the GUI slightly more user friendly
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2079 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-03 03:47:13 +00:00
John Peterson
220eafad0e Wiimote: The first working IR recording, use Alt + the numerical HotKey to play back the IR data associated with a recording
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2078 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-03 00:59:26 +00:00
John Peterson
4b21fa46d5 PadSimple and Wiimote: Changed return false to return true for the ifdef option
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2063 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-01 16:32:31 +00:00
John Peterson
ad995a68ea PadSimple and Wiimote: Change to last commit, changed the ifdef since IsFocus() was already in an ifdef
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2061 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-01 15:58:33 +00:00
John Peterson
d352372ccf Wiimote: Don't allow input when Dolphin is not in focus (supports both the rendering to main window and render to separate window options)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2057 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-01 15:40:13 +00:00
John Peterson
e9036455d6 Wiimote: Fixed the shared eeprom settings, now the first 42 bytes are shared in dual mode. I'm only copying the data from the Wiimote. I'm not changing anything on the Wiimote eeprom.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2056 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-01 14:58:44 +00:00
John Peterson
888465868d Wiimote: Fixed the switching between real and emulated wiimote, the reporting mode is now shared in real/emu dual mode, the accelerator neutral values are shared, the extension is somewhat shared but still doesn't support unplugging and reinserting the extension during gameplay in dual mode. Improved debugging, fixed a bug in movement recording, fixed a bug in report 0x21 eeprom reading so that the game reads the accelerator neutral values from it.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2048 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-01 13:01:50 +00:00
John Peterson
6c7e674e69 Emulated Wiimote: Don't report IR positions outside the screen (leave them at 0xff), don't report A and B button mouse clicks when the cursor is outside the screen
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2042 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-31 01:18:57 +00:00
John Peterson
d3677a0247 Wiimote: Fixed a few non-Windows compile problems, could not fix all
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2037 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-29 13:52:27 +00:00
John Peterson
f813454d76 Wiimote: Fix to last commit
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2034 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-29 08:51:23 +00:00
John Peterson
a35579c40b Wiimote:
1. First test version of movement recording (play back recordings with Shift + 0-9 or Ctrl + 0-9)

2. Really fixed the problem that the Wiimote get stuck on rumble when a game is stopped (sorry about that)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2033 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-29 08:35:29 +00:00
John Peterson
30523b570c Wiimote: Avoid the possibility of causing a constant rumble when a game is closed
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2025 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-28 16:28:34 +00:00
John Peterson
2f0993bb6e Wiimote: Another one
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2024 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-28 16:18:47 +00:00
John Peterson
41b8bb0d25 Wiimote: Change to last commit
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2023 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-28 16:17:01 +00:00
John Peterson
8d08faee2c Wiimote: Small change to last commit
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2022 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-28 16:14:51 +00:00
John Peterson
946fb12752 Wiimote: Partial work on movement recording (not working yet)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2021 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-28 16:09:08 +00:00
nakeee
356db07cbf fixed compile,
fixed crash,
added panicalert`


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2017 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-26 16:27:01 +00:00
John Peterson
bc6bbafb95 Wiimote: Added status bars for the real Wiimote to the configuration menu
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2016 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-26 14:13:27 +00:00
nakeee
3997602e5a case fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2015 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-26 11:36:25 +00:00
John Peterson
5ba7952988 Wiimote: Fixed Issue 517
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2014 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-26 07:29:04 +00:00
John Peterson
b0736a1508 Wiimote: Fixed the switch during gameplay option. The only issue left seems to be that the real wiimote sometimes doesn't get the correct reporting mode
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2013 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-26 07:01:43 +00:00
John Peterson
8eeb1d0202 Wiimote: Switch between emulated and real Wiimote during gameplay.
Notice: It's currently not very user friendly and can crash or fail under some circumstances. I'll make it better momentarily. You currently have to first open the Wiimote config window and the start a game to be able to use switch back and forth after that.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2011 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-25 23:07:15 +00:00
omegadox
fb3e523401 some more warning cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1999 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-24 01:50:23 +00:00
omegadox
8f98f0b778 Some warning and code cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1998 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-24 00:45:46 +00:00
John Peterson
4eb4480b43 Last commit: Missing files
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1890 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-17 14:41:20 +00:00