SIM: Add an X11 mouse-based simulation of an analog joystick device

This commit is contained in:
Gregory Nutt
2014-12-14 10:19:07 -06:00
parent 8c60335f94
commit 68e2d80be4
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@
include $(TOPDIR)/Make.defs include $(TOPDIR)/Make.defs
CFLAGS += -I$(TOPDIR)/sched CFLAGS += -I$(TOPDIR)/sched
CFLAGS += -I$(TOPDIR)/arch/sim/src
ASRCS = ASRCS =
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
+8
View File
@@ -40,6 +40,8 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/compiler.h> #include <nuttx/compiler.h>
#include "up_internal.h"
#ifdef CONFIG_GRAPHICS_TRAVELER_ROMFSDEMO #ifdef CONFIG_GRAPHICS_TRAVELER_ROMFSDEMO
int trv_mount_world(int minor, FAR const char *mountpoint); int trv_mount_world(int minor, FAR const char *mountpoint);
#endif #endif
@@ -80,6 +82,12 @@ int trv_mount_world(int minor, FAR const char *mountpoint);
#ifdef CONFIG_BOARD_INITIALIZE #ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void) void board_initialize(void)
{ {
#ifdef CONFIG_AJOYSTICK
/* Initialize the simulated analog joystick input device */
sim_ajoy_initialize();
#endif
#ifdef CONFIG_GRAPHICS_TRAVELER_ROMFSDEMO #ifdef CONFIG_GRAPHICS_TRAVELER_ROMFSDEMO
/* Special initialization for the Traveler game simulation */ /* Special initialization for the Traveler game simulation */
+2
View File
@@ -102,6 +102,8 @@ CONFIG_SIM_FBHEIGHT=400
CONFIG_SIM_FBWIDTH=640 CONFIG_SIM_FBWIDTH=640
CONFIG_SIM_FBBPP=32 CONFIG_SIM_FBBPP=32
# CONFIG_SIM_TOUCHSCREEN is not set # CONFIG_SIM_TOUCHSCREEN is not set
CONFIG_SIM_AJOYSTICK=y
# CONFIG_SIM_NOINPUT is not set
# CONFIG_SIM_SPIFLASH is not set # CONFIG_SIM_SPIFLASH is not set
# #