Fix double handle_input call
This commit is contained in:
@@ -82,15 +82,12 @@ handle_entity_mode :: proc(
|
||||
//Setlect entity
|
||||
if is_key_pressed(state, glfw.MOUSE_BUTTON_LEFT)
|
||||
{
|
||||
|
||||
aabb : b2.AABB = {mpos, mpos + 1}
|
||||
|
||||
circle : b2.Circle = {center = mpos, radius = 0.2}
|
||||
proxy : b2.ShapeProxy = b2.MakeProxy({circle.center}, circle.radius)
|
||||
|
||||
r := b2.World_OverlapShape(level.engine.world_id, proxy, b2.DefaultQueryFilter(), click_query_filter, game)
|
||||
|
||||
//r := b2.World_OverlapAABB(level.engine.world_id, aabb, b2.DefaultQueryFilter(), click_query_filter, game)
|
||||
}
|
||||
else if is_key_pressed(state, glfw.MOUSE_BUTTON_RIGHT)
|
||||
{
|
||||
|
||||
+1
-1
@@ -178,7 +178,7 @@ interface_all :: proc($E: typeid, interface: ^interface_state, game_data : $G) -
|
||||
|
||||
|
||||
//if handle_input(E, interface.state, game_data) do return true
|
||||
|
||||
|
||||
state := interface.state
|
||||
mu.begin(&state.mu_ctx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user