ControllerState definitely accepts keyboard input. I'm on a macbook pro and
use the line:
ControlerState["Apple Internal Keyboard / Trackpad","KeyboardA Button"]
Nicholas Goble
> On 10/27/10 4:16 AM, "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com> wrote:
>
>> As far as I know ControllerState does not use a keyboard as
>> controller. You could use a virtual joystick to trick Windows (and
>> Mathematica) to think the keyboard is a joystick which can be seen
>> with ControllerState. ppjoy can do this (http://ppjoy.blogspot.com/
>> 2009/11/finally-new-version.html), another one that I haven't tried
>> can be found at
>> <http://headsoft.com.au/index.php?category=vjoy>
>>
>> Cheers -- Sjoerd
>>
>> On Oct 26, 11:34 am, Nicholas Goble <ngo... at iwu.edu> wrote:
>>> This is my first post to the listserve. I'm an fourth-year undergrad
>>> physics major who's done a bit of research using Mathematica. Now I'm trying
>>> out my own pet projects and need a bit of help.
>>>
>>> I'm trying to use my keyboard as a controller. I'm wondering what the
>>> difference is between using EventHandler and ControllerState. That is, what
>>> are the pros and cons to using EventHandler as opposed to ControllerState to
>>> detect a keystroke?
>>>
>>> Nicholas Goble
>>
>>
>>