mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
Replace MacRoman conversion with LIBICONV implementation
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include "HostSuspendCallArgument.h"
|
||||
#include "HostSuspendHook.h"
|
||||
#include "HostVOSEventQueue.h"
|
||||
#include "MacRoman.h"
|
||||
#include "MacRomanConversion.h"
|
||||
|
||||
static void TranslateMouseInputEvent(const GpVOSEvent &vosEventBase, uint32_t timestamp, PortabilityLayer::EventQueue *queue)
|
||||
{
|
||||
@@ -77,7 +77,7 @@ intptr_t PackVOSKeyCode(const GpKeyboardInputEvent &vosEvent)
|
||||
case GpKeyIDSubsets::kUnicode:
|
||||
for (int i = 128; i < 256; i++)
|
||||
{
|
||||
if (PortabilityLayer::MacRoman::g_toUnicode[i] == vosEvent.m_key.m_unicodeChar)
|
||||
if (MacRoman::ToUnicode(i) == vosEvent.m_key.m_unicodeChar)
|
||||
return PL_KEY_MACROMAN(i);
|
||||
}
|
||||
break;
|
||||
@@ -119,7 +119,7 @@ static void ImportVOSEvents(uint32_t timestamp)
|
||||
}
|
||||
|
||||
namespace PLSysCalls
|
||||
{
|
||||
{
|
||||
void Sleep(uint32_t ticks)
|
||||
{
|
||||
if (ticks > 0)
|
||||
|
||||
Reference in New Issue
Block a user