1 // 2 // StickIt 3 // File: StickItApp.c 4 // Joystick application. 5 // Sampel code used in "Getting a Grip on BJoystick" by Eric Shepherd 6 // 7 8 #include "StickItWindow.h" 9 #include "StickItApp.h" 10 11 StickItApp::StickItApp() 12 :BApplication("application/x-vnd.Be-JoyDemoOne") 13 { 14 fStickItWindow = new StickItWindow(BRect(50, 50, 500, 500)); 15 fStickItWindow->Show(); 16 } 17 18 int main(void) { 19 StickItApp app; 20 app.Run(); 21 return 0; 22 } 23