# Copyright (c) 2025 Dominic Masters
# 
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT

# Sources
target_sources(${DUSK_LIBRARY_TARGET_NAME}
  PUBLIC
    input.c
    inputbutton.c
    inputaction.c
)

# Input Action Definitions
dusk_run_python(
  dusk_input_csv_defs
  tools.input.csv
    --csv ${CMAKE_CURRENT_SOURCE_DIR}/input.csv
    --output ${DUSK_GENERATED_HEADERS_DIR}/input/inputactiondefs.h
)
add_dependencies(${DUSK_LIBRARY_TARGET_NAME} dusk_input_csv_defs)