Commit Schez's patch that allows you to adjust IR Sensor sensitivity for real wiimotes.

http://forums.dolphin-emu.com/thread-7697-page-1.html

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5240 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
death2droid
2010-03-26 12:36:28 +00:00
parent beee4f4804
commit b7f5582e64
5 changed files with 34 additions and 3 deletions

View File

@ -350,6 +350,11 @@ int Initialize()
// Remove the wiiuse_poll() threshold
wiiuse_set_accel_threshold(g_WiiMotesFromWiiUse[i], 0);
// Set the ir sensor sensitivity.
if (g_Config.iIRLevel) {
wiiuse_set_ir_sensitivity(g_WiiMotesFromWiiUse[i], g_Config.iIRLevel);
}
// Set the sensor bar position, this should only affect the internal wiiuse api functions
wiiuse_set_ir_position(g_WiiMotesFromWiiUse[i], WIIUSE_IR_ABOVE);