I'm a newbie in this topic, so before buying the right components and start developing, I need some Info about capabilities of these chips and the code itself. Maybe some Pro's can help me a little bit with this !?
My goal is to make some kind of JoyCon Bluetooth HID Controller (OneHanded Controller for moving). So I want to connect an analog Joystick and at least 7 Buttons (wish for 8-10 Buttons) + The Button of the analog Joystick. Because the NANO hast limited input support for Buttons in general I hope there is maybe a solution with the right Code, with something like double-mapping while holding a button to compensate the 8-input Trigger limitation, like with macros or something like this. Furthermore I wanna simulate an analog joystick input with WASD 4-way digital input.
Let me explain in detail with a sketch (see Attachment):
So the Goal is to read out the position (range) of the Joystick and define a (multi-) Keystroke for each Zone. For this example I wanna use it for FPS Games with the following Keys for the following Commands:
W - Move Forward
A - Strife Left
S - Move Backward
D - Strife Right
V - Sprint (run fast)
ALT - Sneak (move slowly)
So to explain the Sketch, my Idea is first to define a zero input tolerance of eg 10% to avoid zero position moving. The Second Zone 10-60% is for moving slowly, so instead of pressing the sneak Button (ALT) with direction (W, A, S, D) I want the ALT key automatically be pressed when the Stick is in that range of 10-60%. The last Zone is for ordinary WASD Input (normal speed movement). The V-Key is set for full speed running, this is set to the Joystick Button Press (pressing down the Joystick).
The other thing is to double bind a Key-Input like with a macro, for this I example I wanna explain it with FPS position layout. So my idea is by "pressing" one button (bind it with the X-Key) my avatar will go from standing position to crouching position, and by "holding" the same button (eg. for 2 seconds) it enters another keystroke (bind it with the C-Key) so my avatar lies down.
The last idea is to implement the g-sensor for additional input. So my idea is to input G or R Key while shaking the controller for Reload or Grenade Throwing for example.
The JoyCon should communicate via bluetooth as a HID keyboard wirelessly.
So my Question is, if this is even possible with one of the NANO Boards or maybe another chip !? I should know if this is even possible with these or if I should search for another one which maybe would conclude better for this !?
Thanks a lot !