input system rework
This commit is contained in:
@ -13,4 +13,4 @@ set(SOURCE_FILES
|
||||
state.h
|
||||
)
|
||||
|
||||
use_townengine(${PROJECT_NAME} "${SOURCE_FILES}" ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
use_townengine("${SOURCE_FILES}" ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
@ -69,8 +69,8 @@ void game_tick(void)
|
||||
ctx.udata = calloc(1, sizeof(State));
|
||||
}
|
||||
|
||||
input_action("add_a_bit", CONTROL_LEFT_MOUSE);
|
||||
input_action("add_a_lot", CONTROL_RIGHT_MOUSE);
|
||||
input_action("add_a_bit", "LCLICK");
|
||||
input_action("add_a_lot", "RCLICK");
|
||||
|
||||
State *state = ctx.udata;
|
||||
|
||||
|
Reference in New Issue
Block a user