From aaecef8c5c4609ef838c47271056d2b93695fb89 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 24 Mar 2020 21:13:56 +0100 Subject: Make function names camelCase This conforms with the zig style guidelines: https://ziglang.org/documentation/master/#Style-Guide --- src/keyboard.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/keyboard.zig') diff --git a/src/keyboard.zig b/src/keyboard.zig index 2b31287..092f71d 100644 --- a/src/keyboard.zig +++ b/src/keyboard.zig @@ -44,14 +44,14 @@ pub const Keyboard = struct { c.wlr_keyboard_set_repeat_info(self.wlr_keyboard, 25, 600); // Setup listeners for keyboard events - self.listen_modifiers.notify = handle_modifiers; + self.listen_modifiers.notify = handleModifiers; c.wl_signal_add(&self.wlr_keyboard.events.modifiers, &self.listen_modifiers); - self.listen_key.notify = handle_key; + self.listen_key.notify = handleKey; c.wl_signal_add(&self.wlr_keyboard.events.key, &self.listen_key); } - fn handle_modifiers(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void { + fn handleModifiers(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void { // This event is raised when a modifier key, such as shift or alt, is // pressed. We simply communicate this to the client. */ const keyboard = @fieldParentPtr(Keyboard, "listen_modifiers", listener.?); @@ -69,7 +69,7 @@ pub const Keyboard = struct { ); } - fn handle_key(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void { + fn handleKey(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void { // This event is raised when a key is pressed or released. const keyboard = @fieldParentPtr(Keyboard, "listen_key", listener.?); const event = @ptrCast( -- cgit v1.2.3