Fix formatting in PollMouseEvents for improved readability
This commit is contained in:
parent
b08fe43bf7
commit
99a0069087
|
|
@ -2352,7 +2352,8 @@ static void PollMouseEvents(void)
|
||||||
if ((event.code) == (ABS_MT_POSITION_X))
|
if ((event.code) == (ABS_MT_POSITION_X))
|
||||||
{
|
{
|
||||||
isMultitouch = true;
|
isMultitouch = true;
|
||||||
if ((platform.touchSlot) < (MAX_TOUCH_POINTS)) {
|
if ((platform.touchSlot) < (MAX_TOUCH_POINTS))
|
||||||
|
{
|
||||||
platform.touchPosition[platform.touchSlot].x = (event.value - platform.absRange.x)*CORE.Window.screen.width/platform.absRange.width;
|
platform.touchPosition[platform.touchSlot].x = (event.value - platform.absRange.x)*CORE.Window.screen.width/platform.absRange.width;
|
||||||
|
|
||||||
// If this slot is active, it's a move. If not, we are just updating the buffer for when it becomes active.
|
// If this slot is active, it's a move. If not, we are just updating the buffer for when it becomes active.
|
||||||
|
|
@ -2363,7 +2364,8 @@ static void PollMouseEvents(void)
|
||||||
|
|
||||||
if ((event.code) == (ABS_MT_POSITION_Y))
|
if ((event.code) == (ABS_MT_POSITION_Y))
|
||||||
{
|
{
|
||||||
if ((platform.touchSlot) < (MAX_TOUCH_POINTS)) {
|
if ((platform.touchSlot) < (MAX_TOUCH_POINTS))
|
||||||
|
{
|
||||||
platform.touchPosition[platform.touchSlot].y = (event.value - platform.absRange.y)*CORE.Window.screen.height/platform.absRange.height;
|
platform.touchPosition[platform.touchSlot].y = (event.value - platform.absRange.y)*CORE.Window.screen.height/platform.absRange.height;
|
||||||
|
|
||||||
// If this slot is active, it's a move. If not, we are just updating the buffer for when it becomes active.
|
// If this slot is active, it's a move. If not, we are just updating the buffer for when it becomes active.
|
||||||
|
|
@ -2530,7 +2532,8 @@ static void PollMouseEvents(void)
|
||||||
|
|
||||||
// Debug logging
|
// Debug logging
|
||||||
static int lastTouchCount = 0;
|
static int lastTouchCount = 0;
|
||||||
if (CORE.Input.Touch.pointCount != lastTouchCount && (touchAction == 0 || touchAction == 1)) {
|
if (CORE.Input.Touch.pointCount != lastTouchCount && (touchAction == 0 || touchAction == 1))
|
||||||
|
{
|
||||||
TRACELOG(LOG_DEBUG, "TOUCH: Count changed from %d to %d (action: %d)", lastTouchCount, CORE.Input.Touch.pointCount, touchAction);
|
TRACELOG(LOG_DEBUG, "TOUCH: Count changed from %d to %d (action: %d)", lastTouchCount, CORE.Input.Touch.pointCount, touchAction);
|
||||||
lastTouchCount = CORE.Input.Touch.pointCount;
|
lastTouchCount = CORE.Input.Touch.pointCount;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user