mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 15:45:58 +00:00
ControllerEmu: Allow analog stick input radius greater than one. Useful for rounded-square inputs of xbox controllers.
This commit is contained in:
parent
da9bcf83ef
commit
c614f5f534
2 changed files with 9 additions and 4 deletions
|
@ -138,8 +138,8 @@ void MappingIndicator::DrawCursor(bool tilt)
|
|||
template <typename F>
|
||||
QPolygonF GetPolygonFromRadiusGetter(F&& radius_getter, double scale)
|
||||
{
|
||||
// 24 is a multiple of 8 (octagon) and enough points to be visibly pleasing:
|
||||
constexpr int shape_point_count = 24;
|
||||
// A multiple of 8 (octagon) and enough points to be visibly pleasing:
|
||||
constexpr int shape_point_count = 32;
|
||||
QPolygonF shape{shape_point_count};
|
||||
|
||||
int p = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue