rename ChatOp::Rawkeys

This commit is contained in:
nworbnhoj 2023-07-27 04:33:18 +10:00
parent 9451ea90d0
commit 34334cb80a
3 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ pub enum ChatOp {
/// a line of text has arrived /// a line of text has arrived
GamLine, GamLine,
/// receive rawkeys from gam /// receive rawkeys from gam
GamRawKeys, GamRawkeys,
/// redraw our UI /// redraw our UI
GamRedraw, GamRedraw,
ListenSet, ListenSet,

View file

@ -186,7 +186,7 @@ pub fn server(
ui.input = Some(s); ui.input = Some(s);
user_post = true; // set a flag, instead of calling here, so message can drop and calling server is released user_post = true; // set a flag, instead of calling here, so message can drop and calling server is released
} }
Some(ChatOp::GamRawKeys) => { Some(ChatOp::GamRawkeys) => {
if let Some(cid) = app_cid { if let Some(cid) = app_cid {
if let Some(opcode) = opcode_rawkeys { if let Some(opcode) = opcode_rawkeys {
msg.forward(cid, opcode) msg.forward(cid, opcode)

View file

@ -73,7 +73,7 @@ impl Ui {
redraw_id: ChatOp::GamRedraw as u32, redraw_id: ChatOp::GamRedraw as u32,
gotinput_id: Some(ChatOp::GamLine as u32), gotinput_id: Some(ChatOp::GamLine as u32),
audioframe_id: None, audioframe_id: None,
rawkeys_id: Some(ChatOp::GamRawKeys as u32), rawkeys_id: Some(ChatOp::GamRawkeys as u32),
focuschange_id: Some(ChatOp::GamChangeFocus as u32), focuschange_id: Some(ChatOp::GamChangeFocus as u32),
}) })
.expect("couldn't register Ux context for chat"); .expect("couldn't register Ux context for chat");