summaryrefslogtreecommitdiff
path: root/components/drivers/input/joystick
diff options
context:
space:
mode:
authorGUI <[email protected]>2025-12-10 16:58:10 +0800
committerGitHub <[email protected]>2025-12-10 16:58:10 +0800
commit3ff3fc39485c725cd93053805d25125353dd53e9 (patch)
tree708ac806078173a5bb47d56278f3dc8edbc865b9 /components/drivers/input/joystick
parent357c9b7b5a61ce2062cbfcb37d9dba8d17ff3d6d (diff)
[dm][input] support input #11031
Diffstat (limited to 'components/drivers/input/joystick')
-rw-r--r--components/drivers/input/joystick/Kconfig7
-rw-r--r--components/drivers/input/joystick/SConscript15
2 files changed, 22 insertions, 0 deletions
diff --git a/components/drivers/input/joystick/Kconfig b/components/drivers/input/joystick/Kconfig
new file mode 100644
index 0000000000..d218d1d16b
--- /dev/null
+++ b/components/drivers/input/joystick/Kconfig
@@ -0,0 +1,7 @@
+menuconfig RT_INPUT_JOYSTICK
+ bool "Joystick"
+ default n
+
+if RT_INPUT_JOYSTICK
+ osource "$(SOC_DM_INPUT_JOYSTICK_DIR)/Kconfig"
+endif
diff --git a/components/drivers/input/joystick/SConscript b/components/drivers/input/joystick/SConscript
new file mode 100644
index 0000000000..1b68c7eb65
--- /dev/null
+++ b/components/drivers/input/joystick/SConscript
@@ -0,0 +1,15 @@
+from building import *
+
+group = []
+
+if not GetDepend(['RT_INPUT_JOYSTICK']):
+ Return('group')
+
+cwd = GetCurrentDir()
+CPPPATH = [cwd + '/../../include']
+
+src = []
+
+group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')