|
euphoricism
|
12-29-2008, 04:53 AM
Post subject: Play poker with wiimote!
|
#1 (permalink)
|
|
4-of-a-Kind
Join Date: Mar 2005
Location: Your place or my place
Posts: 3,610
|
|
Had this idea toiling around in my head for a while, then spoon made his script to get a PS2 controller to work for poker, so that made me want to do the wiimote.
Basically, the wiimote can connect to your PC via a bluetooth dongle. From there it behaves essentially like a bluetooth keyboard. Note -- only certain bluetooth dongles/drivers will work with the wiimote. The one I'm using was about ~25 from Walmart. Its an HP something-or-other.
So to make this work all I had to do was use a program called glovepie which interprets keypresses on the wiimote and turns them into keypresses on the keyboard (it also does way cooler stuff than just that -- you can also get the data from the accelerometers and the infrared camera -- but I see no need for those in this application). From there, we use AHK to turn those keypresses into actions.
I wanted this to be usable in one hand, and the easiest method I found was the following:
When a table pops up, the mouse will default on top of the fold button. Using left and right d-pad will move the mouse between raise/call/fold. The B button (aka the trigger) acts like a left-click, used to confirm raise/call/fold.
Betpot script controls betsizing:
The A button on the wiimote emulates a right-click on the mouse.
Up and Down D-Pad emulates the scroll wheel.
And thats pretty much it. Has a few more features (home button resets mouse position over the fold button in case it wanders off for some reason or another, and the "2" button acts as an enter key to take seats, and the "1" button checks/unchecks autopost blinds)
My host seems to have crashed, so I'll post the actual files tomorrow.
Much thanks to spoonitnow for his AHK help :]
|
|
|
Play for FREE and practice your game at...
Join the FTR Poker Forum to disable these banners and start posting!
|
|
Ragnar4
|
12-29-2008, 07:18 AM
Post subject: Re: Play poker with wiimote!
|
#2 (permalink)
|
|
Full House
Join Date: Sep 2005
Location: Billings, Montana
Posts: 1,284
|
|
Quote:
|
Originally Posted by euphoricism
Had this idea toiling around in my head for a while, then spoon made his script to get a PS2 controller to work for poker, so that made me want to do the wiimote.
Basically, the wiimote can connect to your PC via a bluetooth dongle.]
|
Stopped reading right there.
not because of tl;dr. But because I can't stop giggling at the word dongle in that context.
|
The older I get, the more I start wondering; Just what in the hell is going on here?
|
|
spoonitnow
|
|
Straight Flush
Join Date: Sep 2005
Location: IRC Chat Room
Posts: 5,406
|
|
No problem chief.
|
Quote:
|
Originally Posted by Ripptyde
I only have 2 simple rules when I am coaching a new student.
Rule # 1: don't ask questions
Rule # 2: don't ask questions
I have no interest in discussing strategy with a protege'. Your job is to remain quiet and listen. I have a very systematic approach that I will share with the right candidate and I promise that I will turn you into a force of nature and show you elements of the game of poker that you never knew existed.
|
|
|
bode
|
|
Straight Flush
Join Date: May 2006
Location: slow motion
Posts: 4,270
|
|
i giggled at "dongle" too
|
Quote:
|
eeevees are not monies yet...they are like baby monies.
|
|
|
JKDS
|
|
Full House
Join Date: Feb 2008
Location: Chandler, AZ
Posts: 1,024
|
|
i expected you to have "fold" macro'ed to a wide sweeping motion and 'go all in" with an over elaborate pushing motion...
|
Quote:
Originally Posted by OngBonga
But no, jkds is lolvillager and anyone who wants to string him up is sighbad.
|
|
|
euphoricism
|
|
4-of-a-Kind
Join Date: Mar 2005
Location: Your place or my place
Posts: 3,610
|
|
no, but I think I'm going to have all-in as a fist-pump motion.
|
|
|
|
Galapogos
|
|
4-of-a-Kind
Join Date: Jun 2005
Location: The Loser's Lounge
Posts: 2,322
|
|
Quote:
|
Originally Posted by euphoricism
no, but I think I'm going to have all-in as a fist-pump motion.
|
lol!
|

Quote:
|
Originally Posted by sauce123
I don't get why you insist on stacking off with like jack high all the time.
|
|
|
euphoricism
|
|
4-of-a-Kind
Join Date: Mar 2005
Location: Your place or my place
Posts: 3,610
|
|
Wrote up the whole full text of this thing over at 2p2. Includes a youtube video of yours truly, rambling like a drunk.
http://forumserver.twoplustwo.com/45...iimote-381163/
|
|
|
|
Warpe
|
|
Moderator
Join Date: Sep 2005
Location: Canuckistan
Posts: 3,905
|
|
1 spade for posting it at 2+2
|
|
|
|
a500lbgorilla
|
|
JESUS TAKE THE KEYBOARD
Join Date: Sep 2004
Location: This room is a good place to be
Posts: 8,379
|
|
Quote:
|
Originally Posted by Warpe
1 spade for posting it at 2+2
|
I could only hope to lose to such a powerful poster in the CTC
|

Smithers, use the amnesia ray.
You mean the revolver, sir?
Precisely.
|
|
badgers
|
|
4-of-a-Kind
Join Date: Feb 2007
Location: Spewing
Posts: 3,372
|
|
before i watch video do you fistpump shove? It's quite cool but I don't see how it's any different to playing with any other controller unless you add in the movement sensors
|
3k post - Return of the blog!
|
|
bigspenda73
|
|
Straight Flush
Join Date: Jul 2006
Location: Pwnsylvania
Posts: 7,546
|
|
pretty cool stuff
I don't even have a Wii
|
|
|
|
BennyLaRue
|
|
Full House
Join Date: Sep 2007
Posts: 646
|
|
So, you put the dongle in your wii and then what?
|
|
|
|
euphoricism
|
|
4-of-a-Kind
Join Date: Mar 2005
Location: Your place or my place
Posts: 3,610
|
|
Quote:
|
Originally Posted by badgers
before i watch video do you fistpump shove? It's quite cool but I don't see how it's any different to playing with any other controller unless you add in the movement sensors
|
LoL, no I don't fistpump shove, but it would be trivial to add that in glovepie if you really wanted to ;]. The initial idea was to have you rotate the wiimote to control betsizing but then i realized that got tiring real fast -- which is a problem with a lot of wii applications/games. People are wanting to use functions just because they are there, not because they really contribute to the application.
The new goal became just make playing poker more comfortable.
The main difference I guess is that it's completely wireless and 95% functional with only one hand, from any position. You can have it point it up, down, upside down, whatever, and still fully functional. You're not tied to one position, you can sit, or stand, or lay in bed... however you're comfortable. How many times have you had to take just a FEW STEPS away from your computer and been worried about whether you'd time out at all your tables? With the wiimote as long as you can see the screen and youre within about 10 meters of your PC (which I think is like 25 feet in real measurements) you can still do stuff.
While some controllers have some of these capabilities, I'm aware of none of them that have all. And any that do, I can assure you, are many times more expensive than a $45 wiimote which many of us already own.
Anyway, I can't imagine playing with the mouse again. This is just way more comfortable.
|
|
|
|
euphoricism
|
|
4-of-a-Kind
Join Date: Mar 2005
Location: Your place or my place
Posts: 3,610
|
|
Quote:
|
Originally Posted by bigspenda73
pretty cool stuff
I don't even have a Wii
|
I don't have one either.
|
|
|