mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Second and final pass of clearing out tabs.
This commit is contained in:
@ -17,12 +17,6 @@ namespace ciface
|
||||
namespace DInput
|
||||
{
|
||||
|
||||
//BOOL CALLBACK DIEnumEffectsCallback(LPCDIEFFECTINFO pdei, LPVOID pvRef)
|
||||
//{
|
||||
// ((std::list<DIEFFECTINFO>*)pvRef)->push_back(*pdei);
|
||||
// return DIENUM_CONTINUE;
|
||||
//}
|
||||
|
||||
BOOL CALLBACK DIEnumDeviceObjectsCallback(LPCDIDEVICEOBJECTINSTANCE lpddoi, LPVOID pvRef)
|
||||
{
|
||||
((std::list<DIDEVICEOBJECTINSTANCE>*)pvRef)->push_back(*lpddoi);
|
||||
|
@ -17,7 +17,7 @@ namespace ciface
|
||||
namespace DInput
|
||||
{
|
||||
|
||||
#define DATA_BUFFER_SIZE 32
|
||||
#define DATA_BUFFER_SIZE 32
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Modified some MSDN code to get all the XInput device GUID.Data1 values in a vector,
|
||||
@ -130,7 +130,7 @@ void InitJoystick(IDirectInput8* const idi8, std::vector<Core::Device*>& devices
|
||||
|
||||
// this is used to number the joysticks
|
||||
// multiple joysticks with the same name shall get unique ids starting at 0
|
||||
std::map< std::basic_string<TCHAR>, int> name_counts;
|
||||
std::map< std::basic_string<TCHAR>, int> name_counts;
|
||||
|
||||
std::vector<DWORD> xinput_guids;
|
||||
GetXInputGUIDS( xinput_guids );
|
||||
|
@ -218,12 +218,12 @@ bool KeyboardMouse::UpdateOutput()
|
||||
{
|
||||
bool want_on = false;
|
||||
if (m_state_out[i])
|
||||
want_on = m_state_out[i] > GetTickCount() % 255 ; // light should flash when output is 0.5
|
||||
want_on = m_state_out[i] > GetTickCount() % 255 ; // light should flash when output is 0.5
|
||||
|
||||
// lights are set to their original state when output is zero
|
||||
if (want_on ^ m_current_state_out[i])
|
||||
{
|
||||
kbinputs.push_back(KInput(named_lights[i].code)); // press
|
||||
kbinputs.push_back(KInput(named_lights[i].code)); // press
|
||||
kbinputs.push_back(KInput(named_lights[i].code, true)); // release
|
||||
|
||||
m_current_state_out[i] ^= 1;
|
||||
|
Reference in New Issue
Block a user