Skip to content

Brunni132/KeyboardProvider

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

KeyboardProvider

Small and easy to integrate project allowing the use of your Mac's keyboard in your iOS apps.

Head to the Releases tab to download it.

KeyboardProvider is an app running OS X Snow Leopard and higher (10.6). It monitors your keyboard state and makes it available in the form of a local server. Watch the following video: http://www.youtube.com/watch?v=cFzxoBCgNdg.

Main window Options window

Any app can connect to the server by providing by its IP and port, and a very simple C client (~60 lines) is provided for easy set-up. The only code you have to provide is the following:

#include "kbdclient.h"

void init_game() {
    kbdclient_init("127.0.0.1", 53841);
    ...
}

void do_frame() {
    if (kbdclient_held(KEY_LEFT))
        Some action...
}

About

Small and easy to integrate project allowing the use of your Mac's keyboard in your iOS apps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published