Last change
on this file since 21 was 21, checked in by phudelai, 11 years ago |
New component for the wifibot and the dualshock 3
|
File size:
903 bytes
|
Line | |
---|
1 | #ifndef DUALSHOCK_H
|
---|
2 | # define DUALSHOCK_H
|
---|
3 |
|
---|
4 | # include "kernel/ComponentBase.h"
|
---|
5 | # include "kernel/DbiteFile.h"
|
---|
6 | # include "controller.h"
|
---|
7 |
|
---|
8 | #ifdef WIN32
|
---|
9 | # ifdef PACPUS_DUALSHOCK_API_EXPORTS
|
---|
10 | define PACPUS_DUALSHOCK_API __declspec(dllexport)
|
---|
11 | # else
|
---|
12 | define PACPUS_DUALSHOCK_API __declspec(dllimport)
|
---|
13 | # endif
|
---|
14 | # else
|
---|
15 | # define PACPUS_DUALSHOCK_API
|
---|
16 | #endif
|
---|
17 |
|
---|
18 | namespace pacpus {
|
---|
19 |
|
---|
20 | class PACPUS_DUALSHOCK_API Dualshock
|
---|
21 | : public ComponentBase {
|
---|
22 | public:
|
---|
23 | Dualshock(QString name);
|
---|
24 | ~Dualshock();
|
---|
25 |
|
---|
26 | virtual void stopActivity();
|
---|
27 | virtual void startActivity();
|
---|
28 | virtual ComponentBase::COMPONENT_CONFIGURATION
|
---|
29 | configureComponent(XmlComponentConfig config);
|
---|
30 |
|
---|
31 | private:
|
---|
32 | pacpus::DbiteFile file_;
|
---|
33 | DualshockAPI *d;
|
---|
34 |
|
---|
35 | };
|
---|
36 | }
|
---|
37 |
|
---|
38 |
|
---|
39 | #endif /* DUALSHOCK_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.