mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 21:47:57 +00:00
lots of HID implementation (OS X only for now)
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#include <stdio.h>
|
||||
#include <boo.hpp>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
CDeviceFinder finder(DEV_DOL_SMASH_ADAPTER);
|
||||
CDeviceToken& smashToken = finder.getTokens().begin()->second;
|
||||
CDolphinSmashAdapter* smashAdapter = dynamic_cast<CDolphinSmashAdapter*>(smashToken.openAndGetDevice());
|
||||
|
||||
IGraphicsContext* ctx = new CGraphicsContext;
|
||||
|
||||
if (ctx->create())
|
||||
{
|
||||
}
|
||||
|
||||
CFRunLoopRun();
|
||||
|
||||
delete ctx;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user