From a482986aeea51f76ce252c84fb9cb322b265c898 Mon Sep 17 00:00:00 2001 From: shuiyu1123 Date: Sat, 11 Jul 2026 15:42:17 +0800 Subject: [PATCH] feat: input system verified + WASD camera test - input.c: keyboard/mouse/gamepad fully implemented - window.c: mouse callbacks connected - input_test.c: WASD camera demo (engine D3D11 init conflicts with inline VB) - lighting.h/c: directional + point light support --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 692566f..67d49fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,3 +75,7 @@ set_target_properties(scene_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOU add_executable(light_test WIN32 Demo/light_test.c) target_link_libraries(light_test Engine d3d11 dxgi d3dcompiler ole32 oleaut32 uuid gdi32 user32 kernel32 winmm) set_target_properties(light_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build) + +add_executable(input_test WIN32 Demo/input_test.c) +target_link_libraries(input_test Engine d3d11 dxgi d3dcompiler ole32 oleaut32 uuid gdi32 user32 kernel32 winmm) +set_target_properties(input_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build)