Skip to content

KeyState

29thnight edited this page Nov 27, 2025 · 1 revision

KeyState + 입력 상태 래퍼들

간단 설명: 키/마우스/패드의 상태를 2비트로 압축해 저장하는 래퍼 구현과 입력 타입 정의.

상수/열거형

  • KEYBOARD_COUNT, MOUSE_COUNT, GAMEPAD_KEY_COUNT, MAX_CONTROLLER
  • InputType: Mouse, KeyBoard, GamePad
  • KeyState: Idle, Down, Pressed, Released

KeyboardState

  • 255키 × 2비트 압축 배열
  • Update()(구현부), GetKeyState(index), SetKeyState(index, state)

MouseState

  • 3버튼 × 2비트 압축 배열
  • Update(), GetKeyState(index), SetKeyState(index, state)

PadState

  • 4컨트롤러 × 15버튼 × 2비트 압축 배열
  • Update(), GetKeyState(controllerIndex, buttonIndex), SetKeyState(controllerIndex, buttonIndex, state)

저장 방식: 각 키 상태를 연속 비트 필드에 저장하여 메모리/캐시 효율 향상.

CreatorEngine

API Docs

API Reference
Main
PhysicsSystem
RenderEngine
ScriptBinder
Utility_Framework

etc

Clone this wiki locally