Macros | Functions | Variables
joysticks.c File Reference
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <nuklear.h>
#include <nuklear_glfw_gl2.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for joysticks.c:

Go to the source code of this file.

Macros

#define NK_BUTTON_TRIGGER_ON_RELEASE
 
#define NK_GLFW_GL2_IMPLEMENTATION
 
#define NK_IMPLEMENTATION
 
#define NK_INCLUDE_DEFAULT_ALLOCATOR
 
#define NK_INCLUDE_DEFAULT_FONT
 
#define NK_INCLUDE_FIXED_TYPES
 
#define NK_INCLUDE_FONT_BAKING
 
#define NK_INCLUDE_STANDARD_VARARGS
 
#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT
 

Functions

static void drop_callback (GLFWwindow *window, int count, const char **paths)
 
static void error_callback (int error, const char *description)
 
static void hat_widget (struct nk_context *nk, unsigned char state)
 
static void joystick_callback (int jid, int event)
 
static const char * joystick_label (int jid)
 
int main (void)
 

Variables

static int joystick_count = 0
 
static int joysticks [GLFW_JOYSTICK_LAST+1]
 
static GLFWwindowwindow
 

Macro Definition Documentation

#define NK_BUTTON_TRIGGER_ON_RELEASE

Definition at line 41 of file joysticks.c.

#define NK_GLFW_GL2_IMPLEMENTATION

Definition at line 44 of file joysticks.c.

#define NK_IMPLEMENTATION

Definition at line 34 of file joysticks.c.

#define NK_INCLUDE_DEFAULT_ALLOCATOR

Definition at line 38 of file joysticks.c.

#define NK_INCLUDE_DEFAULT_FONT

Definition at line 37 of file joysticks.c.

#define NK_INCLUDE_FIXED_TYPES

Definition at line 35 of file joysticks.c.

#define NK_INCLUDE_FONT_BAKING

Definition at line 36 of file joysticks.c.

#define NK_INCLUDE_STANDARD_VARARGS

Definition at line 40 of file joysticks.c.

#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT

Definition at line 39 of file joysticks.c.

Function Documentation

static void drop_callback ( GLFWwindow window,
int  count,
const char **  paths 
)
static

Definition at line 88 of file joysticks.c.

static void error_callback ( int  error,
const char *  description 
)
static

Definition at line 59 of file joysticks.c.

static void hat_widget ( struct nk_context nk,
unsigned char  state 
)
static

Definition at line 121 of file joysticks.c.

static void joystick_callback ( int  jid,
int  event 
)
static

Definition at line 64 of file joysticks.c.

static const char* joystick_label ( int  jid)
static

Definition at line 114 of file joysticks.c.

int main ( void  )

Definition at line 170 of file joysticks.c.

Variable Documentation

int joystick_count = 0
static

Definition at line 57 of file joysticks.c.

int joysticks[GLFW_JOYSTICK_LAST+1]
static

Definition at line 56 of file joysticks.c.

GLFWwindow* window
static

Definition at line 55 of file joysticks.c.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:27