Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> RGSS2 Input from keyboard, help with shift key
rural_monk
post Jan 18 2012, 10:55 AM
Post #1


Level 2
Group Icon

Group: Member
Posts: 20
Type: Musician
RM Skill: Advanced




Hi, im trying to distingush between the two shift keys on the keyboard. How do i do that? the code like im working on is in a module.
"menu1 = Input::left shift"
"menu2 = Input::right shift"

-- would i just type Lshift? or LeftShift?

hope i dont sound confusing. thanks.


__________________________
The Rural Monk - the fresh smell of rum in the morning
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Jan 18 2012, 11:15 AM
Post #2


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




You can't do that without a Keyboard script.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
rural_monk
post Jan 18 2012, 02:50 PM
Post #3


Level 2
Group Icon

Group: Member
Posts: 20
Type: Musician
RM Skill: Advanced




QUOTE (Kread-EX @ Jan 18 2012, 11:15 AM) *
You can't do that without a Keyboard script.


would i also need a script for this? what if i want a small menu to appear while "holding" shift. and when i let go, the menu closes. i tried using
Input.press?, but it wont work. is there a simple keyword im missing?


__________________________
The Rural Monk - the fresh smell of rum in the morning
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Jan 19 2012, 01:54 AM
Post #4


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Input.press? checks if the key is continuously pressed. It isn't something you should use for menus. You might use it for small pop-up windows, but certainly not selectable menus.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 07:38 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker