コード例 #1
0
ファイル: KeyMap.cpp プロジェクト: Alwayssnarky/ppsspp
void SetAxisMapping(int btn, int deviceId, int axisId, int direction, bool replace) {
	int key = TranslateKeyCodeFromAxis(axisId, direction);
	SetKeyMapping(btn, KeyDef(deviceId, key), replace);
}
コード例 #2
0
ファイル: KeyMap.cpp プロジェクト: Alwayssnarky/ppsspp
KeyDef AxisDef(int deviceId, int axisId, int direction) {
	return KeyDef(deviceId, TranslateKeyCodeFromAxis(axisId, direction));
}
コード例 #3
0
ファイル: KeyMap.cpp プロジェクト: Alwayssnarky/ppsspp
bool AxisToPspButton(int deviceId, int axisId, int direction, std::vector<int> *pspKeys) {
	int key = TranslateKeyCodeFromAxis(axisId, direction);
	return KeyToPspButton(deviceId, key, pspKeys);
}
コード例 #4
0
ファイル: KeyMap.cpp プロジェクト: KrisLee/ppsspp
int AxisToPspButton(int deviceId, int axisId, int direction) {
	int key = TranslateKeyCodeFromAxis(axisId, direction);
	return KeyToPspButton(deviceId, key);
}