chairsgotoschool
New member
Hello i recently got my teensy in the mail, i'm basically completely new to coding in general and have had fun figuring stuff out.
for my project i need a custom controller so i will use my teensy but i'm having problems. originally i wanted it to just emulate keyboard/mouse since i want to use this with a raspberry pi and dont want to deal with drivers and such. but it seems i can only have like 6 buttons mapped to keyboard keys where i would prefer 16 or 12 at least. so i thought i could use the joystick functions so i copied some code from the teensy site and expaned it to use 16 buttons, no dpad or joysticks. then i tested it and it shows all 16 buttons being pressed but i have nothing hooked to the teensy, then when i do short it as if pressing the button that will be there the buttons goes to the "off" state which is backwards.(i used windows joystick thing to test it)
i would really prefer to use keyboard emulation, the code i got for that i grabbed off thecontrollerpoject.com
i noticed on it they had the part for sending the key Q was disabled and when i tried enabling it, it did not work and i tried fidling around a bit but couldnt get any more keyboard keys to work.
Like i said i'm a noob at this and have just been grabbing (shared) code and modifying it. i did try the default joystick code from the teensy site and had the same issue where it was on when off and off when on. I'm using a teensy 3.0 if that matters and thanks for any help.
for my project i need a custom controller so i will use my teensy but i'm having problems. originally i wanted it to just emulate keyboard/mouse since i want to use this with a raspberry pi and dont want to deal with drivers and such. but it seems i can only have like 6 buttons mapped to keyboard keys where i would prefer 16 or 12 at least. so i thought i could use the joystick functions so i copied some code from the teensy site and expaned it to use 16 buttons, no dpad or joysticks. then i tested it and it shows all 16 buttons being pressed but i have nothing hooked to the teensy, then when i do short it as if pressing the button that will be there the buttons goes to the "off" state which is backwards.(i used windows joystick thing to test it)
i would really prefer to use keyboard emulation, the code i got for that i grabbed off thecontrollerpoject.com
i noticed on it they had the part for sending the key Q was disabled and when i tried enabling it, it did not work and i tried fidling around a bit but couldnt get any more keyboard keys to work.
Like i said i'm a noob at this and have just been grabbing (shared) code and modifying it. i did try the default joystick code from the teensy site and had the same issue where it was on when off and off when on. I'm using a teensy 3.0 if that matters and thanks for any help.