Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunlebron committed Nov 30, 2022
1 parent 573796a commit 2e08c96
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions macos/cc/JWMMainView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,13 @@ - (void)touchesBeganWithEvent:(NSEvent *)event {
const NSSize size = [touch deviceSize];
const NSPoint pos = [touch normalizedPosition];
jwm::JNILocal<jobject> eventObj(fWindow->fEnv, jwm::classes::EventTrackpadTouchStart::make(
fWindow->fEnv,
(jint)[touchId unsignedIntegerValue],
pos.x,
pos.y,
(jint)[deviceId unsignedIntegerValue],
size.width,
size.height));
fWindow->fEnv,
(jint)[touchId unsignedIntegerValue],
pos.x,
pos.y,
(jint)[deviceId unsignedIntegerValue],
size.width,
size.height));
fWindow->dispatch(eventObj.get());
}
}
Expand All @@ -347,10 +347,10 @@ - (void)touchesMovedWithEvent:(NSEvent *)event {
const NSUInteger touchId = [[fTouchIds objectForKey:touch.identity] unsignedIntegerValue];
const NSPoint pos = [touch normalizedPosition];
jwm::JNILocal<jobject> eventObj(fWindow->fEnv, jwm::classes::EventTrackpadTouchMove::make(
fWindow->fEnv,
(jint)touchId,
pos.x,
pos.y));
fWindow->fEnv,
(jint)touchId,
pos.x,
pos.y));
fWindow->dispatch(eventObj.get());
}
}
Expand All @@ -365,8 +365,8 @@ - (void)touchesEndedWithEvent:(NSEvent *)event {
}
const NSPoint pos = [touch normalizedPosition];
jwm::JNILocal<jobject> eventObj(fWindow->fEnv, jwm::classes::EventTrackpadTouchEnd::make(
fWindow->fEnv,
(jint)touchId));
fWindow->fEnv,
(jint)touchId));
fWindow->dispatch(eventObj.get());
}
}
Expand All @@ -380,8 +380,8 @@ - (void)touchesCancelledWithEvent:(NSEvent *)event {
fTouchCount = 0;
}
jwm::JNILocal<jobject> eventObj(fWindow->fEnv, jwm::classes::EventTrackpadTouchCancel::make(
fWindow->fEnv,
(jint)touchId));
fWindow->fEnv,
(jint)touchId));
fWindow->dispatch(eventObj.get());
}
}
Expand Down

0 comments on commit 2e08c96

Please sign in to comment.