I'm trying to connect my mod to a Wii remote, using keys not actually on the keyboard. I think I have the Squeak part working, but I don't know what to do for the GlovePie part. Can anyone help? Here is the ascii code for each of the commands I'm using:
command=ascii A button = 128 B Button = 129 1= 130 2= 131 += 132 -= 133 Home= 134 D up= 135 D right= 136 D down= 137 D left= 138 C= 139 Z= 140 Joy up= 141 Joy right=142 Joy down=143 Joy left= 144 Shake=145 Swing vertical= 146 Swing Horizontal= 147 Swing up= 148 swing right= 149 Swing down= 150 Swing left= 151 Poke= 152 Cross arms= 153 Up down arms= 154 Clockwise circle= 155 Cclockwise circle= 156
Last edited by Billybob-Mario (2011-03-28 07:33:10)
Offline
It turns out that I need to somehow trick the Squeak into reading the fake keys. Can anyone help?
Offline
Simply make a new block:
<wii remote {^ } >
('wii remote %s' #b #keyPressed:)
the code? Edit the asciiFor: add:
'A button' localized = t2 ifTrue: [^ 182].
and put the rest like so. You could even just add these to the key pressed block drop-down!
Last edited by Pecola1 (2011-04-08 22:05:08)
Offline
Pecola1 wrote:
Simply make a new block:
<wii remote {^ } >
('wii remote %s' #b #keyPressed:)
the code? Edit the asciiFor: add:Code:
'A button' localized = t2 ifTrue: [^ 182].and put the rest like so. You could even just add these to the key pressed block drop-down!
I didn't add localized to it before, so I did that but it still doesn't work. Something weird happens: when I'm making a fake key be pressed, the green flag flashes, and everything gets all jumpy, like single stepping mode. That might be part of the problem.
Offline
I'm using GlovePie to press the keys using other keys (there's a problem with my bluetooth). When I use a real key to press another real key, it works fine. But when I try to press a fake key, the green flag flashes and stuff gets jumpy. Does anyone know why that happens?
Offline
For some strange reason, when you hold a fake key, it also presses something like enter, but not enter.
Edit: or maybe it is enter, at least sometimes. I'm trying to make it swallow enter, and press p instead, and sometimes it presses enter as well.
Last edited by Billybob-Mario (2011-04-12 07:19:55)
Offline
Nice idea... Never new you could use keys that didn't exist.
Offline
Does anyone know why making GlovePie press and hold Unicode 00C7 (or maybe any unicode) makes it press enter as well?
Offline
I got it to stop pressing enter by adding
Keyboard.RepeatFakeKeys = False
, but it won't pick up the fake keypresses. Can anyone help?
Offline
Here is my current test code:
if L then Key.Unicode00C7=1 else Key.Unicode00C7=0 endif
When I hold L, it presses Ç.
It works, but Slash doesn't pick it up. That's the real problem.
Offline
charm2010 wrote:
Thanks for all the great answers, I had the same exact issue been looking for a solution for a long time. Thanks
It still doesn't work.
Offline
Bummmmmppppp
Offline
Billybob-Mario wrote:
Bummmmmppppp
You must mean Bump. DONNNNNN'TT UUUUUUUSSSE TOOOOOOOOOO MAAAANNNNYYY LETTEEEEEEEERRRSSSSS.
Offline