VSF Documented
vsf_input_nspro.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_INPUT_NSPRO_H__
19#define __VSF_INPUT_NSPRO_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "../../vsf_input_cfg.h"
24
25#if VSF_USE_INPUT == ENABLED && VSF_INPUT_USE_NSPRO == ENABLED
26
27#include "../../vsf_input_get_type.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33/*============================ MACROS ========================================*/
34/*============================ MACROFIED FUNCTIONS ===========================*/
35/*============================ TYPES =========================================*/
36
37enum {
39};
40
41/*============================ GLOBAL VARIABLES ==============================*/
42/*============================ PROTOTYPES ====================================*/
43
44extern void vsf_nspro_on_new_dev(void *dev);
45extern void vsf_nspro_on_free_dev(void *dev);
46extern void vsf_nspro_on_gamepad(vk_gamepad_evt_t *gamepad_evt);
47extern void vsf_nspro_on_sensor(vk_sensor_evt_t *sensor_evt);
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif // VSF_USE_INPUT && VSF_INPUT_USE_NSPRO
54#endif // __VSF_INPUT_NSPRO_H__
Definition vsf_input_gamepad.h:103
Definition vsf_input_sensor.h:81
#define VSF_INPUT_USER_TYPE
Definition vsf_input_get_type_1bit.h:103
void vsf_nspro_on_new_dev(void *dev)
Definition vsf_input_nspro.c:41
void vsf_nspro_on_gamepad(vk_gamepad_evt_t *gamepad_evt)
Definition vsf_input_nspro.c:59
void vsf_nspro_on_sensor(vk_sensor_evt_t *sensor_evt)
Definition vsf_input_nspro.c:65
void vsf_nspro_on_free_dev(void *dev)
Definition vsf_input_nspro.c:47
@ VSF_INPUT_TYPE_NSPRO
Definition vsf_input_nspro.h:38