VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
Examples
File List
Globals
source
component
input
driver
nspro
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
30
extern
"C"
{
31
#endif
32
33
/*============================ MACROS ========================================*/
34
/*============================ MACROFIED FUNCTIONS ===========================*/
35
/*============================ TYPES =========================================*/
36
37
enum
{
38
VSF_INPUT_TYPE_NSPRO
=
VSF_INPUT_USER_TYPE
,
39
};
40
41
/*============================ GLOBAL VARIABLES ==============================*/
42
/*============================ PROTOTYPES ====================================*/
43
44
extern
void
vsf_nspro_on_new_dev
(
void
*dev);
45
extern
void
vsf_nspro_on_free_dev
(
void
*dev);
46
extern
void
vsf_nspro_on_gamepad
(
vk_gamepad_evt_t
*gamepad_evt);
47
extern
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__
vk_gamepad_evt_t
Definition
vsf_input_gamepad.h:110
vk_sensor_evt_t
Definition
vsf_input_sensor.h:81
vsf_input_cfg.h
vsf_input_get_type.h
VSF_INPUT_USER_TYPE
#define VSF_INPUT_USER_TYPE
Definition
vsf_input_get_type_1bit.h:103
vsf_nspro_on_new_dev
void vsf_nspro_on_new_dev(void *dev)
Definition
vsf_input_nspro.c:41
vsf_nspro_on_gamepad
void vsf_nspro_on_gamepad(vk_gamepad_evt_t *gamepad_evt)
Definition
vsf_input_nspro.c:59
vsf_nspro_on_sensor
void vsf_nspro_on_sensor(vk_sensor_evt_t *sensor_evt)
Definition
vsf_input_nspro.c:65
vsf_nspro_on_free_dev
void vsf_nspro_on_free_dev(void *dev)
Definition
vsf_input_nspro.c:47
VSF_INPUT_TYPE_NSPRO
@ VSF_INPUT_TYPE_NSPRO
Definition
vsf_input_nspro.h:38
Generated from commit:
vsfteam/vsf@ceb53fd