aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-10-14 16:50:01 +0200
committerTeddy Wing2018-10-14 16:50:01 +0200
commit3b2cd9bd85f92a42d927ad8c04d1c392f99e544f (patch)
treec77c62d23398ea76a18a7c8a136907f1251f41a8
parent8e05e3a4a6e42912ed6bda97346ed55d239557eb (diff)
downloaddome_key_event_source_simulator-3b2cd9bd85f92a42d927ad8c04d1c392f99e544f.tar.bz2
Change whitespace
Change from Objective-C-style indentation to simple tabbing indentation. The `:`s weren't aligned with the first one since I added the assignment (which maybe was in a different repository). Just don't bother with colon alignment to keep the code under 80 columns.
-rw-r--r--dome_key_event_source_simulator/dome_key_event_source_simulator.m16
1 files changed, 8 insertions, 8 deletions
diff --git a/dome_key_event_source_simulator/dome_key_event_source_simulator.m b/dome_key_event_source_simulator/dome_key_event_source_simulator.m
index 87dd63e..99aa8aa 100644
--- a/dome_key_event_source_simulator/dome_key_event_source_simulator.m
+++ b/dome_key_event_source_simulator/dome_key_event_source_simulator.m
@@ -21,14 +21,14 @@ static const size_t key_down_up[][2] = {
void dkess_press_key(int key, NSEventModifierFlags modifier_flags) {
for (int i = 0; i < 2; i++) {
NSEvent *event = [NSEvent otherEventWithType:NSSystemDefined
- location:NSZeroPoint
- modifierFlags:key_down_up[i][0]
- timestamp:0.0
- windowNumber:0
- context:nil
- subtype:NSScreenChangedEventType
- data1:(NX_KEYTYPE_PLAY << 16) | (key_down_up[i][1] << 8)
- data2:-1];
+ location:NSZeroPoint
+ modifierFlags:key_down_up[i][0]
+ timestamp:0.0
+ windowNumber:0
+ context:nil
+ subtype:NSScreenChangedEventType
+ data1:(NX_KEYTYPE_PLAY << 16) | (key_down_up[i][1] << 8)
+ data2:-1];
CGEventRef cg_event = [event CGEvent];
CGEventPost(kCGHIDEventTap, cg_event);