コード例 #1
0
ファイル: JGE.cpp プロジェクト: cbarox/PSPConstructor
u8 JGE::GetAnalogY()
{
	if (JGEGetKeyState(VK_UP)) return 0;
	if (JGEGetKeyState(VK_DOWN)) return 0xff;

	return 0x80;
}
コード例 #2
0
ファイル: JGE.cpp プロジェクト: Leajian/cspsp-nightly
u8 JGE::GetAnalogY()
{
	if (JGEGetKeyState('W')) return 0;
	if (JGEGetKeyState('S')) return 0xff;

	return 0x80;
}
コード例 #3
0
ファイル: JGE.cpp プロジェクト: cbarox/PSPConstructor
u8 JGE::GetAnalogX()
{
	if (JGEGetKeyState(VK_LEFT)) return 0;
	if (JGEGetKeyState(VK_RIGHT)) return 0xff;

	return 0x80;
}
コード例 #4
0
ファイル: JGE.cpp プロジェクト: Leajian/cspsp-nightly
u8 JGE::GetAnalogX()
{
	if (JGEGetKeyState('A')) return 0;
	if (JGEGetKeyState('D')) return 0xff;

	return 0x80;
}