More Qt6 fixes
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <86box/win.h>
|
#include <86box/win.h>
|
||||||
|
|
||||||
bool WindowsManagerFilter::nativeEventFilter(const QByteArray &eventType, void *message, long *result)
|
bool WindowsManagerFilter::nativeEventFilter(const QByteArray &eventType, void *message, result_t *result)
|
||||||
{
|
{
|
||||||
if (eventType == "windows_generic_MSG")
|
if (eventType == "windows_generic_MSG")
|
||||||
{
|
{
|
||||||
|
@@ -312,9 +312,9 @@ void WindowsRawInputFilter::keyboard_getkeymap()
|
|||||||
/* Get the scan code remappings from:
|
/* Get the scan code remappings from:
|
||||||
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout */
|
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout */
|
||||||
bufSize = 32768;
|
bufSize = 32768;
|
||||||
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, keyName, 0, 1, &hKey) == ERROR_SUCCESS)
|
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, keyName, 0, 1, &hKey) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
if (RegQueryValueEx(hKey, valueName, NULL, NULL, buf, &bufSize) == ERROR_SUCCESS)
|
if (RegQueryValueExA(hKey, valueName, NULL, NULL, buf, &bufSize) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
bufEx2 = (UINT32 *)buf;
|
bufEx2 = (UINT32 *)buf;
|
||||||
scMapCount = bufEx2[2];
|
scMapCount = bufEx2[2];
|
||||||
|
Reference in New Issue
Block a user