diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-18 09:05:25 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-18 09:12:55 +0100 |
commit | c2f88ee8bec8cdd0ea573b54aee89a241c7d4deb (patch) | |
tree | 3b311ad8bec8c05bf82e4f7ef77ace6468798fb4 /proto-vjoystick | |
parent | 6167effc23b8ca8a3034f1ab465565f92c621187 (diff) |
plugins: rename check_status -> initialize
It's a contract for plugin invocation that the particular function fills
the role of initialization. Rename accordingly.
Diffstat (limited to 'proto-vjoystick')
-rw-r--r-- | proto-vjoystick/vjoystick.cpp | 2 | ||||
-rw-r--r-- | proto-vjoystick/vjoystick.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/proto-vjoystick/vjoystick.cpp b/proto-vjoystick/vjoystick.cpp index 1f849e11..3da748bd 100644 --- a/proto-vjoystick/vjoystick.cpp +++ b/proto-vjoystick/vjoystick.cpp @@ -125,7 +125,7 @@ vjoystick_proto::~vjoystick_proto() { } -module_status vjoystick_proto::check_status() +module_status vjoystick_proto::initialize() { switch (h.get_state()) { diff --git a/proto-vjoystick/vjoystick.h b/proto-vjoystick/vjoystick.h index 742d5b47..6469a4e6 100644 --- a/proto-vjoystick/vjoystick.h +++ b/proto-vjoystick/vjoystick.h @@ -54,7 +54,7 @@ class vjoystick_proto : public IProtocol public: vjoystick_proto(); ~vjoystick_proto() override; - module_status check_status() override; + module_status initialize() override; void pose( const double *headpose ) override; QString game_name() override { return otr_tr("Virtual joystick"); } private: |