Last change
on this file since 145 was 99, checked in by nguyenhu, 9 years ago |
compilation under linux with 0.2.X framework
|
File size:
1.3 KB
|
Line | |
---|
1 | /*********************************************************************
|
---|
2 | // created: 2012/03/01 - 14:06
|
---|
3 | // filename: dualshock.cpp
|
---|
4 | //
|
---|
5 | // author: Pierre Hudelaine
|
---|
6 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
7 | //
|
---|
8 | // version: $Id: $
|
---|
9 | //
|
---|
10 | // purpose: Read the dualshock 3 button using bluetooth
|
---|
11 | //
|
---|
12 | *********************************************************************/
|
---|
13 |
|
---|
14 | #ifndef DUALSHOCK_H
|
---|
15 | # define DUALSHOCK_H
|
---|
16 |
|
---|
17 | # include <kernel/ComponentBase.h>
|
---|
18 | # include <kernel/DbiteFile.h>
|
---|
19 | # include "controller.h"
|
---|
20 |
|
---|
21 | #ifdef WIN32
|
---|
22 | # ifdef PACPUS_DUALSHOCK_API_EXPORTS
|
---|
23 | define PACPUS_DUALSHOCK_API __declspec(dllexport)
|
---|
24 | # else
|
---|
25 | define PACPUS_DUALSHOCK_API __declspec(dllimport)
|
---|
26 | # endif
|
---|
27 | # else
|
---|
28 | # define PACPUS_DUALSHOCK_API
|
---|
29 | #endif
|
---|
30 |
|
---|
31 | namespace pacpus {
|
---|
32 |
|
---|
33 | class PACPUS_DUALSHOCK_API Dualshock
|
---|
34 | : public ComponentBase {
|
---|
35 | public:
|
---|
36 | Dualshock(QString name);
|
---|
37 | ~Dualshock();
|
---|
38 |
|
---|
39 | virtual void stopActivity();
|
---|
40 | virtual void startActivity();
|
---|
41 | virtual ComponentBase::COMPONENT_CONFIGURATION
|
---|
42 | configureComponent(XmlComponentConfig config);
|
---|
43 |
|
---|
44 | private:
|
---|
45 | pacpus::DbiteFile file_;
|
---|
46 | DualshockAPI *d;
|
---|
47 |
|
---|
48 | };
|
---|
49 | }
|
---|
50 |
|
---|
51 |
|
---|
52 | #endif /* DUALSHOCK_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.