mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 02:29:59 -06:00
Changed both video plugins to save PNG screenshots. Made GCPad New default 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
This commit is contained in:
@ -208,9 +208,6 @@ void Wiimote::Reset()
|
||||
m_rumble_on = false;
|
||||
m_speaker_mute = false;
|
||||
|
||||
// used for some hax in Update()
|
||||
m_skip_update = 0;
|
||||
|
||||
// will make the first Update() call send a status request
|
||||
// the first call to RequestStatus() will then set up the status struct extension bit
|
||||
m_extension->active_extension = -1;
|
||||
@ -393,7 +390,7 @@ void Wiimote::Update()
|
||||
}
|
||||
|
||||
// check if there is a read data request
|
||||
if ( m_read_requests.size() )
|
||||
if (m_read_requests.size())
|
||||
{
|
||||
ReadRequest& rr = m_read_requests.front();
|
||||
// send up to 16 bytes to the wii
|
||||
@ -428,15 +425,6 @@ void Wiimote::Update()
|
||||
if (false == m_reporting_auto)
|
||||
return;
|
||||
|
||||
// Some hax to skip a few update cycles after a change in reporting mode
|
||||
// It fixes the nunchuk prob in ztp and wii sports. I have no idea why
|
||||
// maybe its an m_reporting_channel problem?
|
||||
if (m_skip_update)
|
||||
{
|
||||
--m_skip_update;
|
||||
return;
|
||||
}
|
||||
|
||||
// figure out what data we need
|
||||
const ReportFeatures& rpt = reporting_mode_features[m_reporting_mode - WM_REPORT_CORE];
|
||||
|
||||
@ -512,7 +500,10 @@ void Wiimote::Update()
|
||||
}
|
||||
|
||||
// ----ir----
|
||||
if (rpt.ir)
|
||||
// only if camera is fully enabled.
|
||||
// should send 0xFF if camera isn't enabled maybe,
|
||||
// 0x00 is working fine though
|
||||
if (rpt.ir && 0x08 == m_reg_ir->data[0x30])
|
||||
{
|
||||
float xx = 10000, yy = 0, zz = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user