Add M9.8d rebindable engineering controls
SDL-free action/HID-key bindings with conflict validation, a staging editor and a versioned all-or-nothing controls file (ADR-0085). The adapter maps keys through the bindings, releases and drains on rebinding, and captures the chosen key ahead of the toolkit and world. The client adds a Controls panel, key hints, startup loading with a bounded rejection notice, and --controls/--show-controls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+6
-1
@@ -97,7 +97,7 @@ include(CTest)
|
||||
if(EVO_BUILD_CLIENT OR EVO_BUILD_NETWORK)
|
||||
# SDL-free client value contracts (M9.3-M9.5), shared by the client and the dev
|
||||
# session codec. They copy read-only world/biology views, never the reverse.
|
||||
add_library(evo_client_controls STATIC src/client/camera/camera.cpp src/client/input/input.cpp src/client/ui/ui_state.cpp src/client/ui/outcome_log.cpp)
|
||||
add_library(evo_client_controls STATIC src/client/camera/camera.cpp src/client/input/input.cpp src/client/input/bindings.cpp src/client/ui/ui_state.cpp src/client/ui/outcome_log.cpp)
|
||||
target_include_directories(evo_client_controls PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
evo_owned_target(evo_client_controls)
|
||||
if(BUILD_TESTING)
|
||||
@@ -106,6 +106,11 @@ if(EVO_BUILD_CLIENT OR EVO_BUILD_NETWORK)
|
||||
evo_owned_target(evo-client-state-tests)
|
||||
add_test(NAME client-ui-state COMMAND evo-client-state-tests)
|
||||
set_tests_properties(client-ui-state PROPERTIES TIMEOUT 30 LABELS "client")
|
||||
add_executable(evo-client-bindings-tests tests/client_bindings.cpp)
|
||||
target_link_libraries(evo-client-bindings-tests PRIVATE evo_client_controls)
|
||||
evo_owned_target(evo-client-bindings-tests)
|
||||
add_test(NAME client-bindings COMMAND evo-client-bindings-tests)
|
||||
set_tests_properties(client-bindings PROPERTIES TIMEOUT 30 LABELS "client")
|
||||
endif()
|
||||
add_library(evo_client_views STATIC src/client/views/environment_view.cpp src/client/views/organism_view.cpp)
|
||||
target_link_libraries(evo_client_views PUBLIC evo::world evo::biology)
|
||||
|
||||
Reference in New Issue
Block a user