mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
Fix code style.
This commit is contained in:
parent
25bad61f4f
commit
1700b901b6
8 changed files with 57 additions and 56 deletions
|
@ -12,16 +12,15 @@ uint32 CInputProviderQtMouse::GetId() const
|
|||
std::string CInputProviderQtMouse::GetTargetDescription(const BINDINGTARGET& target) const
|
||||
{
|
||||
assert(target.providerId == PROVIDER_ID);
|
||||
auto description = [&]() -> std::string
|
||||
{
|
||||
auto description = [&]() -> std::string {
|
||||
switch(target.keyId)
|
||||
{
|
||||
case Qt::LeftButton:
|
||||
return "Left Button";
|
||||
case Qt::RightButton:
|
||||
return "Right Button";
|
||||
default:
|
||||
return string_format("Unknown button %d", target.keyId);
|
||||
case Qt::LeftButton:
|
||||
return "Left Button";
|
||||
case Qt::RightButton:
|
||||
return "Right Button";
|
||||
default:
|
||||
return string_format("Unknown button %d", target.keyId);
|
||||
}
|
||||
}();
|
||||
return string_format("Mouse: %s", description.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue