mouse pan and reset offset
This commit is contained in:
parent
7189f28c00
commit
2026f8ac8d
5 changed files with 32 additions and 1 deletions
|
|
@ -155,6 +155,17 @@ void kubo_context_input_right(struct kubo_context *context) {
|
|||
}
|
||||
}
|
||||
|
||||
void kubo_context_reset_offset(struct kubo_context *context) {
|
||||
switch (context->state.id) {
|
||||
case KUBO_CONTEXT_NORMAL:
|
||||
context->offset_x = 0;
|
||||
context->offset_y = 0;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void select_next_wall(struct kubo_context *context) {
|
||||
if (!context->walls.count) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue