mirror of
https://github.com/jpd002/Play-.git
synced 2025-05-08 11:37:59 +03:00
Add InputProviderEvDev.
This commit is contained in:
parent
7806972328
commit
d5e8689feb
10 changed files with 61 additions and 30 deletions
24
Source/ui_unix/unix/InputProviderEvDev.cpp
Normal file
24
Source/ui_unix/unix/InputProviderEvDev.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include "InputProviderEvDev.h"
|
||||
#include "string_format.h"
|
||||
|
||||
#define PROVIDER_ID 'evdv'
|
||||
|
||||
CInputProviderEvDev::CInputProviderEvDev()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CInputProviderEvDev::~CInputProviderEvDev()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
uint32 CInputProviderEvDev::GetId() const
|
||||
{
|
||||
return PROVIDER_ID;
|
||||
}
|
||||
|
||||
std::string CInputProviderEvDev::GetTargetDescription(const BINDINGTARGET& target) const
|
||||
{
|
||||
return string_format("EvDev: btn-%d", target.keyId);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue