1 /* 2 * Copyright 2007 Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com 7 * Ryan Leavengood, leavengood@gmail.com 8 */ 9 #ifndef _JOY_WIN_H 10 #define _JOY_WIN_H 11 12 13 #include <Window.h> 14 #include <Joystick.h> 15 16 class BView; 17 class BCheckBox; 18 class BStringView; 19 class BListView; 20 class BButton; 21 class BBox; 22 23 24 class JoyWin : public BWindow 25 { 26 public: 27 JoyWin(BRect frame,const char *title, 28 window_look look, 29 window_feel feel, 30 uint32 flags, 31 uint32 workspace = B_CURRENT_WORKSPACE); 32 33 virtual void MessageReceived(BMessage *message); 34 virtual bool QuitRequested(); 35 36 protected: 37 BJoystick fJoystick; 38 39 BBox* fBox; 40 BCheckBox* fCheckbox; 41 42 BStringView* fGamePortS; 43 BStringView* fConControllerS; 44 45 BListView* fGamePortL; 46 BListView* fConControllerL; 47 48 BButton* fCalibrateButton; 49 BButton* fProbeButton; 50 51 status_t AddDevices(); 52 status_t AddJoysticks(); 53 status_t Calibrate(); 54 status_t PerformProbe(); 55 status_t ApplyChanges(); 56 status_t GetSettings(); 57 58 }; 59 60 #endif /* _JOY_WIN_H */ 61 62