Skip to content

Commit

Permalink
Merge pull request #62 from Alprnn357/Alprnn357-touch-emulate-fix
Browse files Browse the repository at this point in the history
Fix using menus with cursor
  • Loading branch information
Velaron authored Nov 16, 2023
2 parents b4b30a7 + b6a0bd2 commit 0c59e5e
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 17 deletions.
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav; vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav; vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_item_ct.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav; vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav; vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_item_t.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_machinegun_ct.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_machinegun_t.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_pistol_ct.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_pistol_t.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_rifle_ct.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_rifle_t.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_shotgun_ct.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_shotgun_t.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_submachinegun_ct.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/buy_submachinegun_t.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
Expand All @@ -16,7 +17,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/chooseteam.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
touch_addbutton "_menu_corner2" "gfx/vgui/round_corner_sw.tga" "" 0.020000 0.936170 0.040000 0.970213 255 255 255 186 6
Expand All @@ -15,7 +16,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/chooseteam_ct.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
touch_addbutton "_menu_corner2" "gfx/vgui/round_corner_sw.tga" "" 0.020000 0.936170 0.040000 0.970213 255 255 255 186 6
Expand All @@ -15,7 +16,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/chooseteam_tr.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//=======================================================================

touch_setclientonly 1
touch_emulate 1
touch_set_stroke 1 156 77 20 200
touch_addbutton "_menu_corner1" "gfx/vgui/round_corner_ne.tga" "" 0.960000 0.034043 0.980000 0.068085 255 255 255 186 6
touch_addbutton "_menu_corner2" "gfx/vgui/round_corner_sw.tga" "" 0.020000 0.936170 0.040000 0.970213 255 255 255 186 6
Expand All @@ -15,7 +16,7 @@ touch_addbutton "_menu_corner9" "gfx/vgui/round_corner_nw.tga" "" 0.020000 0.034
touch_addbutton "_menu_corner10" "gfx/vgui/CS_logo.tga" "" 0.022811 0.041790 0.080802 0.131169 255 174 0 255 6

alias _erase_frame "touch_removebutton _menu_*; _menu_off; unalias _erase_frame"
alias _menu_off "touch_setclientonly 0"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
alias _click_cnd "play media/launch_select1.wav ;vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav ;vibrate 30"

Expand Down
3 changes: 2 additions & 1 deletion 3rdparty/cs16client-extras/touch/customcmd.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
cmd_scripting 1
//touch_setclientonly 1
touch_emulate 1
touch_set_stroke 1 156 77 20 200
if "$touch_move_indicator > 0"
:set touch_indicator_value "$touch_move_indicator"
:set touch_move_indicator 0
alias _erase_frame "touch_removebutton _menu_*; touch_setclientonly 0; set touch_move_indicator $touch_indicator_value; unalias _erase_frame"
alias _erase_frame "touch_removebutton _menu_*; touch_setclientonly 0; touch_emulate 0; set touch_move_indicator $touch_indicator_value; unalias _erase_frame"
alias _click_cnd "play media/launch_select1.wav; vibrate 30"
alias _click_cnd_back "play media/launch_upmenu1.wav; vibrate 30"
touch_addbutton "_menu_look" "" "_look" 0.5 0 1 1 0 0 0 0 6
Expand Down

0 comments on commit 0c59e5e

Please sign in to comment.