fix: win32 renderer event tag
This commit is contained in:
parent
7bfb9a2216
commit
33e36c080d
1 changed files with 4 additions and 4 deletions
|
@ -576,7 +576,7 @@ fn sendMouse(
|
||||||
const cell_offset = cellOffsetFromPos(cell_size, point.x, point.y);
|
const cell_offset = cellOffsetFromPos(cell_size, point.x, point.y);
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
.move => state.pid.send(.{
|
.move => state.pid.send(.{
|
||||||
"GUI",
|
"RDR",
|
||||||
"M",
|
"M",
|
||||||
cell.x,
|
cell.x,
|
||||||
cell.y,
|
cell.y,
|
||||||
|
@ -584,7 +584,7 @@ fn sendMouse(
|
||||||
cell_offset.y,
|
cell_offset.y,
|
||||||
}) catch |e| onexit(e),
|
}) catch |e| onexit(e),
|
||||||
else => |b| state.pid.send(.{
|
else => |b| state.pid.send(.{
|
||||||
"GUI",
|
"RDR",
|
||||||
"B",
|
"B",
|
||||||
switch (b) {
|
switch (b) {
|
||||||
.move => unreachable,
|
.move => unreachable,
|
||||||
|
@ -668,7 +668,7 @@ fn sendKey(
|
||||||
|
|
||||||
for (char_buf[0..@intCast(unicode_result)]) |codepoint| {
|
for (char_buf[0..@intCast(unicode_result)]) |codepoint| {
|
||||||
state.pid.send(.{
|
state.pid.send(.{
|
||||||
"GUI",
|
"RDR",
|
||||||
"I",
|
"I",
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
.press => input.event.press,
|
.press => input.event.press,
|
||||||
|
@ -826,7 +826,7 @@ fn WndProc(
|
||||||
};
|
};
|
||||||
//std.log.info("new size {}x{} {}x{}", .{ new_size.x, new_size.y, new_cell_size.x, new_cell_size.y });
|
//std.log.info("new size {}x{} {}x{}", .{ new_size.x, new_size.y, new_cell_size.x, new_cell_size.y });
|
||||||
state.pid.send(.{
|
state.pid.send(.{
|
||||||
"GUI",
|
"RDR",
|
||||||
"Resize",
|
"Resize",
|
||||||
client_cell_size.x,
|
client_cell_size.x,
|
||||||
client_cell_size.y,
|
client_cell_size.y,
|
||||||
|
|
Loading…
Add table
Reference in a new issue