Foot Switch Key_1=Rapidfire On/Off
12 posts
• Page 2 of 2 • 1, 2
Re: Foot Switch Key_1=Rapidfire On/Off
Combo_run Destroy{} wrote:Thanks guys.
I just bought the three switch scythe. Saw the stinky board after but it also looks really cool.
+1
I connected it to the prog port via this USB On The GO (OTG) cable:
The foot switch outputs "1", "2" and "3" like a normal keyboard which can be mapped to buttons like e.g.:
- Code: Select all
#include <keyboard.gph>
init {
const uint8 map[] = {
KEY_1, BUTTON_1,
KEY_2, BUTTON_2,
KEY_3, BUTTON_3
};
keymapping(map);
}
-
OFC-Giorgio - Lieutenant
- Posts: 344
- Joined: Mon Sep 15, 2014 4:26 pm
Re: Foot Switch Key_1=Rapidfire On/Off
Cool ... also note there is no need of an actual mapping to "read" the footswitch inputs, the builtin function key_status() can be used instead.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
12 posts
• Page 2 of 2 • 1, 2
Return to User's Script Documentation
Who is online
Users browsing this forum: No registered users and 134 guests