mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #317 Add stub Linux and OSX IJoystick implementations
This commit is contained in:
35
src/blackinput/osx/joystick_mac.cpp
Normal file
35
src/blackinput/osx/joystick_mac.cpp
Normal file
@@ -0,0 +1,35 @@
|
||||
/* Copyright (C) 2014
|
||||
* swift Project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of Swift Project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "joystick_mac.h"
|
||||
|
||||
using namespace BlackMisc::Hardware;
|
||||
|
||||
namespace BlackInput
|
||||
{
|
||||
CJoystickMac::CJoystickMac(QObject *parent) :
|
||||
IJoystick(parent)
|
||||
{
|
||||
}
|
||||
|
||||
CJoystickMac::~CJoystickMac()
|
||||
{
|
||||
}
|
||||
|
||||
void CJoystickMac::startCapture()
|
||||
{
|
||||
}
|
||||
|
||||
void CJoystickMac::triggerButton(const CJoystickButton button, bool isPressed)
|
||||
{
|
||||
if(!isPressed) emit buttonUp(button);
|
||||
else emit buttonDown(button);
|
||||
}
|
||||
|
||||
} // namespace BlackInput
|
||||
Reference in New Issue
Block a user