Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-03-15 02:12:12 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-03-15 02:12:12 +0300
commit01e4785587400ebfe86bcc8f52bd8aa22592e5c5 (patch)
tree6f9cf4b85a6c72ce37b08cfa9be1b6701cfd016c /clovercon/mod
parentb2d6cff7ced8cbf1d284b213652bf0c8c2ad88f5 (diff)
Turbo X/Y
Diffstat (limited to 'clovercon/mod')
-rw-r--r--clovercon/mod/etc/preinit.d/pc000_clovercon29
-rw-r--r--clovercon/mod/install6
-rw-r--r--clovercon/mod/readme.txt7
3 files changed, 42 insertions, 0 deletions
diff --git a/clovercon/mod/etc/preinit.d/pc000_clovercon b/clovercon/mod/etc/preinit.d/pc000_clovercon
new file mode 100644
index 00000000..e5efc915
--- /dev/null
+++ b/clovercon/mod/etc/preinit.d/pc000_clovercon
@@ -0,0 +1,29 @@
+if [ $cfg_clovercon_enabled == "y" ]; then
+CLOVER_BOARD_NAME=$(cat $mountpoint/etc/clover/boardtype)
+
+echo "clovercon_hack: starting driver"
+echo "home button combination: $cfg_clovercon_home_combination"
+echo "autofire: $cfg_clovercon_autofire"
+echo "autofire XY: $cfg_clovercon_autofire_xy"
+echo "autofire interval: $cfg_clovercon_autofire_interval"
+echo "famicom 2nd start workaround: $cfg_clovercon_fc_start"
+
+case "${CLOVER_BOARD_NAME}" in
+ fp)
+ module_params=2,195,1,194
+ ;;
+ ep)
+ module_params=1,195,2,194
+ ;;
+ dp-hvc)
+ module_params=1,-1,2,-1
+ ;;
+ dp-nes)
+ module_params=1,195,2,194
+ ;;
+esac
+
+overmount /lib/modules/$(uname -r)/extra/clovercon.ko
+insmod $mountpoint/lib/modules/$(uname -r)/extra/clovercon.ko module_params=$module_params home_combination=$cfg_clovercon_home_combination autofire=$cfg_clovercon_autofire autofire_xy=$cfg_clovercon_autofire_xy autofire_interval=$cfg_clovercon_autofire_interval fc_start=$cfg_clovercon_fc_start
+
+fi
diff --git a/clovercon/mod/install b/clovercon/mod/install
new file mode 100644
index 00000000..5d9bf850
--- /dev/null
+++ b/clovercon/mod/install
@@ -0,0 +1,6 @@
+cfg_clovercon_enabled='y'
+cfg_clovercon_home_combination='0x24'
+cfg_clovercon_autofire='1'
+cfg_clovercon_autofire_xy='0'
+cfg_clovercon_autofire_interval='8'
+cfg_clovercon_fc_start='0'
diff --git a/clovercon/mod/readme.txt b/clovercon/mod/readme.txt
new file mode 100644
index 00000000..ce810620
--- /dev/null
+++ b/clovercon/mod/readme.txt
@@ -0,0 +1,7 @@
+=== Clovercon Hack ===
+
+This module installs custom clovercon gamepad driver.
+Features:
+* It allowes to use button combination to open menu
+* Autofire
+* Start button simulation on second controller (for Famicom Mini)