Exemple #1
0
//=============================================================================
// 入力処理の更新処理
//=============================================================================
void UpdateInput(void)
{
	// キーボードの更新
	UpdateKeyboard();
	
	// マウスの更新
	UpdateMouse();
	
	// パッドの更新
	UpdatePad();

}
Exemple #2
0
int XinputDevice::UpdateState(InputState &input_state) {
	if (!s_pXInputDLL)
		return 0;

	bool anySuccess = false;
	for (int i = 0; i < XUSER_MAX_COUNT; i++) {
		XINPUT_STATE state;
		ZeroMemory(&state, sizeof(XINPUT_STATE));
		if (check_delay[i]-- > 0)
			continue;
		DWORD dwResult = PPSSPP_XInputGetState(i, &state);
		if (dwResult == ERROR_SUCCESS) {
			UpdatePad(i, state, input_state);
			anySuccess = true;
		}
	}

	// If we get XInput, skip the others. This might not actually be a good idea.
	return anySuccess ? UPDATESTATE_SKIP_PAD : 0;
}
Exemple #3
0
bool MyInput::Update(){
	//キーボード, パッド, マウスの入力状態を更新
	return UpdateKey() && UpdatePad() && UpdateMouse();
}