fromScancode() -> uiprivFromScancode().

This commit is contained in:
Pietro Gagliardi 2018-04-15 22:31:17 -04:00
parent 0dddf4a490
commit 24a4b0997c
4 changed files with 4 additions and 4 deletions

View File

@ -151,7 +151,7 @@ static const struct {
{ 0xFFFF, 0 }, { 0xFFFF, 0 },
}; };
int fromScancode(uintptr_t scancode, uiAreaKeyEvent *ke) int uiprivFromScancode(uintptr_t scancode, uiAreaKeyEvent *ke)
{ {
int i; int i;

View File

@ -51,7 +51,7 @@ struct uiprivClickCounter {
}; };
extern int uiprivClickCounterClick(uiprivClickCounter *c, int button, int x, int y, uintptr_t time, uintptr_t maxTime, int32_t xdist, int32_t ydist); extern int uiprivClickCounterClick(uiprivClickCounter *c, int button, int x, int y, uintptr_t time, uintptr_t maxTime, int32_t xdist, int32_t ydist);
extern void uiprivClickCounterReset(uiprivClickCounter *); extern void uiprivClickCounterReset(uiprivClickCounter *);
extern int fromScancode(uintptr_t, uiAreaKeyEvent *); extern int uiprivFromScancode(uintptr_t, uiAreaKeyEvent *);
// matrix.c // matrix.c
extern void fallbackSkew(uiDrawMatrix *, double, double, double, double); extern void fallbackSkew(uiDrawMatrix *, double, double, double, double);

View File

@ -411,7 +411,7 @@ static int areaKeyEvent(uiArea *a, int up, GdkEventKey *e)
goto keyFound; goto keyFound;
} }
if (fromScancode(e->hardware_keycode - 8, &ke)) if (uiprivFromScancode(e->hardware_keycode - 8, &ke))
goto keyFound; goto keyFound;
// no supported key found; treat as unhandled // no supported key found; treat as unhandled

View File

@ -300,7 +300,7 @@ static int areaKeyEvent(uiArea *a, int up, WPARAM wParam, LPARAM lParam)
} }
// and finally everything else // and finally everything else
if (fromScancode((lParam >> 16) & 0xFF, &ke)) if (uiprivFromScancode((lParam >> 16) & 0xFF, &ke))
goto keyFound; goto keyFound;
// not a supported key, assume unhandled // not a supported key, assume unhandled