keyboard input

Need help with using DizzyAGE then look here
Post Reply
Grandad
Hard Boiled Egg
Posts: 1361
Joined: Sat Aug 08, 2009 10:47 am
Location: Balham - gateway to the south

keyboard input

Post by Grandad » Fri Apr 06, 2018 9:16 am

Is it possible to use keyboard input such as 'y' or 'n' to respond to a question rather than have a pop up as noted in the dialogs.gs file or would there be a problem in which 'country' the keyboard is set to for the PC it's working with?

If so, would it be identifying the 'number' such as the numbers listed in the dizzy config file for the action keys??

NigeC
Hard Boiled Egg
Posts: 128
Joined: Fri Nov 30, 2007 3:02 pm
Location: Co Durham.UK
Contact:

Re: keyboard input

Post by NigeC » Wed Apr 18, 2018 8:13 am

Usually you can use char codes n is 78 y is 89 but I have no idea how you can do this with DizzyAge sorry

Grandad
Hard Boiled Egg
Posts: 1361
Joined: Sat Aug 08, 2009 10:47 am
Location: Balham - gateway to the south

Re: keyboard input

Post by Grandad » Wed Apr 18, 2018 8:29 am

Thanks NigeC, I wouldn't know how to apply it to DizzyAge, but at least it's a starting point to see how much I can screw the engine by experimenting :v2_dizzy_cool:

NigeC
Hard Boiled Egg
Posts: 128
Joined: Fri Nov 30, 2007 3:02 pm
Location: Co Durham.UK
Contact:

Re: keyboard input

Post by NigeC » Wed Apr 18, 2018 12:28 pm

I was just looking and sys_getkey or sys_getchar might work?

http://www.simion.co.uk/gs9/doc/annex08 ... sys_getkey

Grandad
Hard Boiled Egg
Posts: 1361
Joined: Sat Aug 08, 2009 10:47 am
Location: Balham - gateway to the south

Re: keyboard input

Post by Grandad » Thu Apr 19, 2018 8:31 am

Thanks for the info :tup:

Post Reply