Jump to content


Photo

make buttons have a ctrl+click or an alt+click


  • Please log in to reply
1 reply to this topic

#1 itsosmpl

itsosmpl

    GMC Member

  • New Member
  • 7 posts
  • Version:GM8

Posted 12 June 2012 - 03:56 PM

hey guys,

as the title states im looking for a way to make an button function different when the ctrl or alt is held. is it possible? if so can you give an example?

thx
  • 0

#2 ZyklonMiraj

ZyklonMiraj

    GMC Member

  • GMC Member
  • 136 posts
  • Version:Unknown

Posted 12 June 2012 - 03:59 PM

Simple;in the step event
if keyboard_check(vk_alt) and keyboard_check(mb_left) 
{
//your code
}

if keyboard_check(vk_control) and keyboard_check(mb_left) 
{
//your code
}
please click the green circle with a + at the end of this post if u find it helpful.

Edited by ZyklonMiraj, 12 June 2012 - 04:01 PM.

  • 1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users