mirror of
https://git.sr.ht/~kikoodx/momento
synced 2024-06-05 18:21:25 +02:00
18 lines
361 B
C
18 lines
361 B
C
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
||
|
/* Copyright (C) 2021 KikooDX */
|
||
|
|
||
|
#include "input.h"
|
||
|
#include <gint/keycodes.h>
|
||
|
|
||
|
struct Input input_init(void)
|
||
|
{
|
||
|
struct Input input = {
|
||
|
.keycodes = {KEY_LEFT, KEY_RIGHT, KEY_UP, KEY_DOWN,
|
||
|
KEY_SHIFT},
|
||
|
};
|
||
|
int i = KEYS_COUNT;
|
||
|
while (i-- > 0)
|
||
|
input.keystates[i] = KS_UP;
|
||
|
return input;
|
||
|
}
|