mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 01:08:39 +12:00
Windows: distinguish left and right modifiers
This is just some workaround until we either use a different input api for keyboards or until we refactor the keyboard_pad_handler to use Qt with native scan codes
This commit is contained in:
parent
bec6bde919
commit
b5f01372ee
3 changed files with 70 additions and 10 deletions
|
@ -106,8 +106,8 @@ void gs_frame::showEvent(QShowEvent *event)
|
|||
{
|
||||
// we have to calculate new window positions, since the frame is only known once the window was created
|
||||
// the left and right margins are too big on my setup for some reason yet unknown, so we'll have to ignore them
|
||||
int x = geometry().left(); //std::max(geometry().left(), frameMargins().left());
|
||||
int y = std::max(geometry().top(), frameMargins().top());
|
||||
const int x = geometry().left(); //std::max(geometry().left(), frameMargins().left());
|
||||
const int y = std::max(geometry().top(), frameMargins().top());
|
||||
|
||||
setPosition(x, y);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue