Make Keyboard a toplevel struct
This commit is contained in:
parent
97d395dbfc
commit
ed98e8fe1a
2 changed files with 138 additions and 139 deletions
|
@ -1,12 +1,12 @@
|
||||||
|
const Self = @This();
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
const c = @import("c.zig");
|
const c = @import("c.zig");
|
||||||
|
|
||||||
const Log = @import("log.zig").Log;
|
const Log = @import("log.zig").Log;
|
||||||
const Seat = @import("seat.zig");
|
const Seat = @import("seat.zig");
|
||||||
|
|
||||||
pub const Keyboard = struct {
|
|
||||||
const Self = @This();
|
|
||||||
|
|
||||||
seat: *Seat,
|
seat: *Seat,
|
||||||
wlr_input_device: *c.wlr_input_device,
|
wlr_input_device: *c.wlr_input_device,
|
||||||
wlr_keyboard: *c.wlr_keyboard,
|
wlr_keyboard: *c.wlr_keyboard,
|
||||||
|
@ -161,4 +161,3 @@ pub const Keyboard = struct {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ const std = @import("std");
|
||||||
|
|
||||||
const Cursor = @import("cursor.zig");
|
const Cursor = @import("cursor.zig");
|
||||||
const InputManager = @import("input_manager.zig");
|
const InputManager = @import("input_manager.zig");
|
||||||
const Keyboard = @import("keyboard.zig").Keyboard;
|
const Keyboard = @import("keyboard.zig");
|
||||||
const LayerSurface = @import("layer_surface.zig");
|
const LayerSurface = @import("layer_surface.zig");
|
||||||
const Output = @import("output.zig");
|
const Output = @import("output.zig");
|
||||||
const View = @import("view.zig");
|
const View = @import("view.zig");
|
||||||
|
|
Loading…
Reference in a new issue