mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
SIM: Add an X11 mouse-based simulation of an analog joystick device
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user