KbCheck

 19 July 17:21   Aback to

     Aback to

    A afflicted kbcheck that will analysis all affiliated keyboards and will array out some invalid accessories that arise to be keyboards.

    It should be acclaimed that this Software will stop and acknowledgment on the first keyboard that has a key that is pressed. Conceivably this could be adapted so that the sum of all arrested keyboards is alternate and so if you are acute a key on one keyboard you can aswell be acute addition key on addition keyboard and get both responses.

    


    function [keyIsDown,secs, keyCode] = KbCheck(deviceNumber)

    % [keyIsDown,secs,keyCode] = KbCheck([deviceNumber])

    %

    % Acknowledgment keyboard cachet (keyIsDown), time (secs) of the cachet check, and

    % keyboard browse cipher (keyCode).

    %

    % keyIsDown 1 if any key, including modifiers such as ,

    % or is down. 0 otherwise.

    %

    % secs time of keypress as alternate by GetSecs.

    %

    % keyCode Mac: a 128-element analytic array. Anniversary bit aural the

    % analytic arrangement represents one keyboard key. If a key is

    % pressed, its bit is set, othewise the bit is clear. To

    % catechumen a keyCode to a agent of key numbers use

    % FIND(keyCode). To acquisition a keys keyNumber use KbName

    % or KbDemo.

    %

    % Win: a 256-element array. It seems that the first

    % 128 elements accord to the

    % ascii arrangement of the characters, and may be consistent

    % with the Mac key codes.

    %

    % KbCheck and KbWait actuate whether any key is down now, including the

    % meta keys: , , , , and


    

 


Tags: added, array, clear, character, characters, level, check, keyboard, event, devices

 kbcheck, getchar, keycode, keyboard, devices, kbwait, keyisdown, return, keyboards, character, added, invalidproducts, psychhid, clear, array, capslock, level, pressed, flushevents, check, function, kbdemo, charavail, logical, characters, event, , kbcheck and, logical array, secs keycode, keyisdown secs, keyisdown secs keycode, keycode kbcheck devicenumber, secs keycode kbcheck,

Share KbCheck: Digg it!   Google Bookmarks   Del.icio.us   Yahoo! MyWeb   Furl  Binklist   Reddit!   Stumble Upon   Technorati   Windows Live   Bookmark

Text link code :
Hyper link code:

Also see ...

Permalink
Article In : Computers & Technology  -  Programming