소스 검색

Fix IsKeyPressedRepeat() for PLATFORM_DRM direct input (#3583)

pull/3585/head
ubkp 1 년 전
committed by GitHub
부모
커밋
bd81bdc24a
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      src/platforms/rcore_drm.c

+ 1
- 0
src/platforms/rcore_drm.c 파일 보기

@ -1709,6 +1709,7 @@ static void PollKeyboardEvents(void)
// Event interface: 'value' is the value the event carries. Either a relative change for EV_REL,
// absolute new value for EV_ABS (joysticks ...), or 0 for EV_KEY for release, 1 for keypress and 2 for autorepeat
CORE.Input.Keyboard.currentKeyState[keycode] = (event.value >= 1)? 1 : 0;
CORE.Input.Keyboard.keyRepeatInFrame[keycode] = (event.value == 2)? 1 : 0;
if (event.value >= 1)
{
CORE.Input.Keyboard.keyPressedQueue[CORE.Input.Keyboard.keyPressedQueueCount] = keycode; // Register last key pressed

불러오는 중...
취소
저장