Dr Strangelove
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Dr Strangelove
a.k.a How I learnt to love my scroll-wheel mouse.
I have had an obsession with Pentominoes since I bought my sister a Spears Games version of that, knowing full
well that I'd end up playing with it . . . https://en.wikipedia.org/wiki/Pentomino
Anyway, I got bogged down a while back because I really didn't want to have a separate 'rotate' button for each of the 12 shapes:
as all sorts of complications arose with drag-and-drop and so on.
Today; for no obvious reason, I started wondering if I could pick up a rawKeyDown signal from the scroll-wheel on my mouse.
Things went rather better than that as I picked up 2 different signals depending on which way I scrolled the wheel.
This really sorted out my previous problem:
the sample stack is here: https://www.dropbox.com/s/1tyxt1015z0h5 ... e.zip?dl=0
I have had an obsession with Pentominoes since I bought my sister a Spears Games version of that, knowing full
well that I'd end up playing with it . . . https://en.wikipedia.org/wiki/Pentomino
Anyway, I got bogged down a while back because I really didn't want to have a separate 'rotate' button for each of the 12 shapes:
as all sorts of complications arose with drag-and-drop and so on.
Today; for no obvious reason, I started wondering if I could pick up a rawKeyDown signal from the scroll-wheel on my mouse.
Things went rather better than that as I picked up 2 different signals depending on which way I scrolled the wheel.
This really sorted out my previous problem:
the sample stack is here: https://www.dropbox.com/s/1tyxt1015z0h5 ... e.zip?dl=0
Re: Dr Strangelove
Nice!
[Hold shiftkey down when scrolling to get two keys more: 65310 and 65311].
[Hold shiftkey down when scrolling to get two keys more: 65310 and 65311].
shiftLock happens
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Dr Strangelove
Certainly not on Linux.Hold shiftkey down when scrolling to get two keys more: 65310 and 65311
Which OS are you using?
Re: Dr Strangelove
Yes, forgot to say, this is MacOS only.
[Thought you are using a PPC-Mac.]
Linux and Windows handle the modifier keys in a different way.
This differs also between platforms for "modifier- clicks".
[Thought you are using a PPC-Mac.]
Linux and Windows handle the modifier keys in a different way.
This differs also between platforms for "modifier- clicks".
shiftLock happens
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Dr Strangelove
I do, indeed, use a PPC Mac: but Livecode's last version to run on that machine is 6.7,
so I'd be missing a lot were I to stick with that.
As far as I'm concerned I tend not to be interested in much that does not
work completely across the 3 desktop platforms Livecode is available for.
so I'd be missing a lot were I to stick with that.
As far as I'm concerned I tend not to be interested in much that does not
work completely across the 3 desktop platforms Livecode is available for.
Re: Dr Strangelove
Hi,
Win 10-64, german keyboard:
Scroll wheel gives 65308/ 65309. Always.
Shift (65505), Alt (65513), Win (L65388, R65399) and "menu" (65383) give their own key repeatedly - replacing the wheel key immediately after it registers.
Ctrl/ Strg doesn't give a rawKeyDown.
Have fun!
Win 10-64, german keyboard:
Scroll wheel gives 65308/ 65309. Always.
Shift (65505), Alt (65513), Win (L65388, R65399) and "menu" (65383) give their own key repeatedly - replacing the wheel key immediately after it registers.
Ctrl/ Strg doesn't give a rawKeyDown.
Have fun!
All code published by me here was created with Community Editions of LC (thus is GPLv3).
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!
Re: Dr Strangelove
Mac, Linux, and Windows: scroolwhell is always 65308/ 65309.
I tested on Win and Linux.
I tested on Win and Linux.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am