마우스의 상태를 기술합니다.
구문
struct GameInputMouseState
{
GameInputMouseButtons buttons;
GameInputMousePositions positions;
int64_t positionX;
int64_t positionY;
int64_t absolutePositionX;
int64_t absolutePositionY;
int64_t wheelX;
int64_t wheelY;
};
멤버
buttons
형식: GameInputMouseButtons
마우스 단추의 상태입니다.
positionFlags
형식: GameInputMousePosition
마우스 위치의 상태입니다.
positionX
형식: int64_t
마우스 위치의 누적 X축 변경입니다.
positionY
형식: int64_t
마우스 위치의 누적 Y축 변경입니다.
absolutePositionX
형식: int64_t
마우스의 절대 x축 위치입니다.
absolutePositionY
형식: int64_t
마우스의 절대 y축 위치입니다.
wheelX
형식: int64_t
X축 스크롤 휠의 누적 변경입니다.
wheelY
형식: int64_t
Y축 스크롤 휠의 누적 변경입니다.
설명
이 구조는 IGameInputReading::GetMouseState 메서드에서 사용됩니다.
마우스 및 스크롤 휠 움직임은 절대적인 위치로 보고되지 않습니다. 이전 판독치의 값에서 현재 판독치의 값을 빼서 델타를 계산합니다.
GameInput은 사용 가능한 모든 트랙패드 디바이스를 단일 가상 마우스 디바이스로 제공합니다.
자세한 내용은 GameInput 판독값을 참조하세요.
요구 사항
헤더: GameInput.h
지원되는 플랫폼: Windows, Xbox One 패밀리 콘솔 및 Xbox Series 콘솔