MaurerPower
May 6th, 2008, 02:23 AM
Hi everyone,
I have no idea how to program in C++. I'd like to learn, but this is a specific problem I need resolved quickly (It's for a project, due on wednesday)
Anyways, the project is a DIY "hacking" project. My project is going to be a "typing glove". Basically, I'm going to exploit the fact that you can get characters from the keyboard by connecting wires to the receivers on the board inside the keyboard. I want to make it so that I have one wire on my thumb, and then 8 wires on my other fingers (2 on each finger) with which I can complete different circuits and get different characters.
The problem that I need your guys' help with is the coding of a simple program that would allow me to do like a cell phone/keypad type of typing: that is, you press one button once, you get, say, a, press the same button again within 2 seconds, get a b, c, etc. The different circuit connections (or character outputs) would be like the buttons on a cell phone.
So does anyone know a quick easy way to create a program that will take a character input, and if the same input is put in within.. oh..2 seconds, output the next letter, and if hti again, the next letter? I hope I'm being clear enough on this. It's just like texting on a cell phone, with your index finger being 2 and 3, middle 4 and 5, ring 6 and 7, pinky 8 and 9, and they would be able to output all the characters possible from those keys.
My email is emaurer512@gmail.com if you'd like to help me out on this. I'd really appreciate it, CodeGurus! Thanks.
I have no idea how to program in C++. I'd like to learn, but this is a specific problem I need resolved quickly (It's for a project, due on wednesday)
Anyways, the project is a DIY "hacking" project. My project is going to be a "typing glove". Basically, I'm going to exploit the fact that you can get characters from the keyboard by connecting wires to the receivers on the board inside the keyboard. I want to make it so that I have one wire on my thumb, and then 8 wires on my other fingers (2 on each finger) with which I can complete different circuits and get different characters.
The problem that I need your guys' help with is the coding of a simple program that would allow me to do like a cell phone/keypad type of typing: that is, you press one button once, you get, say, a, press the same button again within 2 seconds, get a b, c, etc. The different circuit connections (or character outputs) would be like the buttons on a cell phone.
So does anyone know a quick easy way to create a program that will take a character input, and if the same input is put in within.. oh..2 seconds, output the next letter, and if hti again, the next letter? I hope I'm being clear enough on this. It's just like texting on a cell phone, with your index finger being 2 and 3, middle 4 and 5, ring 6 and 7, pinky 8 and 9, and they would be able to output all the characters possible from those keys.
My email is emaurer512@gmail.com if you'd like to help me out on this. I'd really appreciate it, CodeGurus! Thanks.