added kubo_state_wall_new
This commit is contained in:
parent
fb8ff21666
commit
c3973ae02b
9 changed files with 96 additions and 26 deletions
36
states/kubo_state_wall_new.c
Normal file
36
states/kubo_state_wall_new.c
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* Copyright Luka Jankovic 2025
|
||||
*
|
||||
* This file is part of Kubo.
|
||||
*
|
||||
* Kubo is free software: you can redistribute it and/or modify it under the
|
||||
* terms of the GNU General Public License as published by the Free Software
|
||||
* Foundation, either version 3 of the License, or (at your option) any later
|
||||
* version.
|
||||
*
|
||||
* Kubo is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* Kubo. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "kubo_state_wall_new.h"
|
||||
#include "../kubo_context.h"
|
||||
|
||||
extern bool kubo_mouse_snap;
|
||||
|
||||
void kubo_state_wall_new_entered(void *context_data) {
|
||||
struct kubo_context *context = (struct kubo_context *)context_data;
|
||||
(void)context;
|
||||
}
|
||||
|
||||
void kubo_state_wall_new_key(void *context_data, int key_code) {
|
||||
struct kubo_context *context = (struct kubo_context *)context_data;
|
||||
(void)context;
|
||||
|
||||
if (key_code == KEY_S) {
|
||||
kubo_mouse_snap = !kubo_mouse_snap;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue