Merge pull request #956 from ggrtk/qt-chinese-simplified
Qt: Update duckstation-qt_zh-cn.ts (@zkdpower)
This commit is contained in:
commit
3e644d3963
|
@ -222,10 +222,10 @@ u32 NamcoGunCon::StaticGetVibrationMotorCount()
|
|||
Controller::SettingList NamcoGunCon::StaticGetSettings()
|
||||
{
|
||||
static constexpr std::array<SettingInfo, 2> settings = {
|
||||
{{SettingInfo::Type::Path, "CrosshairImagePath", "Crosshair Image Path",
|
||||
"Path to an image to use as a crosshair/cursor."},
|
||||
{SettingInfo::Type::Float, "CrosshairScale", "Crosshair Image Scale", "Scale of crosshair image on screen.", "1.0",
|
||||
"0.0001", "100.0"}}};
|
||||
{{SettingInfo::Type::Path, "CrosshairImagePath", TRANSLATABLE("NamcoGunCon", "Crosshair Image Path"),
|
||||
TRANSLATABLE("NamcoGunCon", "Path to an image to use as a crosshair/cursor.")},
|
||||
{SettingInfo::Type::Float, "CrosshairScale", TRANSLATABLE("NamcoGunCon", "Crosshair Image Scale"),
|
||||
TRANSLATABLE("NamcoGunCon", "Scale of crosshair image on screen."), "1.0", "0.0001", "100.0"}}};
|
||||
|
||||
return SettingList(settings.begin(), settings.end());
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "common/assert.h"
|
||||
#include "common/log.h"
|
||||
#include "common/state_wrapper.h"
|
||||
#include "host_interface.h"
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
|
||||
|
@ -219,25 +220,22 @@ std::optional<s32> NeGcon::StaticGetButtonCodeByName(std::string_view button_nam
|
|||
|
||||
Controller::AxisList NeGcon::StaticGetAxisNames()
|
||||
{
|
||||
#define A(n, t) \
|
||||
{ \
|
||||
#n, static_cast <s32>(Axis::n), Controller::AxisType::t \
|
||||
}
|
||||
|
||||
return {A(Steering, Full), A(I, Half), A(II, Half), A(L, Half)};
|
||||
|
||||
#undef A
|
||||
return {{TRANSLATABLE("NeGcon", "Steering"), static_cast<s32>(Axis::Steering), AxisType::Full},
|
||||
{TRANSLATABLE("NeGcon", "I"), static_cast<s32>(Axis::I), AxisType::Half},
|
||||
{TRANSLATABLE("NeGcon", "II"), static_cast<s32>(Axis::II), AxisType::Half},
|
||||
{TRANSLATABLE("NeGcon", "L"), static_cast<s32>(Axis::L), AxisType::Half}};
|
||||
}
|
||||
|
||||
Controller::ButtonList NeGcon::StaticGetButtonNames()
|
||||
{
|
||||
#define B(n) \
|
||||
{ \
|
||||
#n, static_cast <s32>(Button::n) \
|
||||
}
|
||||
|
||||
return {B(Up), B(Down), B(Left), B(Right), B(A), B(B), B(R), B(Start)};
|
||||
#undef B
|
||||
return {{TRANSLATABLE("NeGcon", "Up"), static_cast<s32>(Button::Up)},
|
||||
{TRANSLATABLE("NeGcon", "Down"), static_cast<s32>(Button::Down)},
|
||||
{TRANSLATABLE("NeGcon", "Left"), static_cast<s32>(Button::Left)},
|
||||
{TRANSLATABLE("NeGcon", "Right"), static_cast<s32>(Button::Right)},
|
||||
{TRANSLATABLE("NeGcon", "A"), static_cast<s32>(Button::A)},
|
||||
{TRANSLATABLE("NeGcon", "B"), static_cast<s32>(Button::B)},
|
||||
{TRANSLATABLE("NeGcon", "R"), static_cast<s32>(Button::R)},
|
||||
{TRANSLATABLE("NeGcon", "Start"), static_cast<s32>(Button::Start)}};
|
||||
}
|
||||
|
||||
u32 NeGcon::StaticGetVibrationMotorCount()
|
||||
|
|
|
@ -190,12 +190,8 @@ Controller::AxisList PlayStationMouse::StaticGetAxisNames()
|
|||
|
||||
Controller::ButtonList PlayStationMouse::StaticGetButtonNames()
|
||||
{
|
||||
#define B(n) \
|
||||
{ \
|
||||
#n, static_cast < s32>(Button::n) \
|
||||
}
|
||||
return {B(Left), B(Right)};
|
||||
#undef B
|
||||
return {{TRANSLATABLE("PlayStationMouse", "Left"), static_cast<s32>(Button::Left)},
|
||||
{TRANSLATABLE("PlayStationMouse", "Right"), static_cast<s32>(Button::Right)}};
|
||||
}
|
||||
|
||||
u32 PlayStationMouse::StaticGetVibrationMotorCount()
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue