Skip to content

Commit

Permalink
fix _menu.keychar not getting called (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
p3r7 authored Nov 19, 2022
1 parent e77a9e7 commit f242b29
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lua/core/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,18 @@ function _menu.keycode(c,value)
end

-- parameter change with +/-
if c=="MINUS" then
_menu.penc(3,value*-1)
elseif c=="EQUAL" then
_menu.penc(3,value)
if c=="MINUS" then
_menu.penc(3,value*-1)
elseif c=="EQUAL" then
_menu.penc(3,value)
end

if _menu.keyboardcode then _menu.keyboardcode(c,value) end
end

function _menu.keychar(c) end
function _menu.keychar(c)
if _menu.keyboardchar then _menu.keyboardchar(c) end
end

function _menu.dpad(axis,value)
if gamepad.down() then
Expand Down

0 comments on commit f242b29

Please sign in to comment.