Emuforums.com

Go Back   Emuforums.com > Handheld Emulation > iDeaS Discussion
About Us Register FAQ Members List Calendar Mark Forums Read

Login to remove all ads!
Reply
 
LinkBack Thread Tools Display Modes
Old October 23rd, 2007   #81 (permalink)
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 4,188
i booted into safe mode and you know what, control worked to an extent.

BUT, i think i know why now.

THE PLUGIN DOES NOT POLL THE CONTROLLER FAST ENOUGH TO DETECT BUTTON PRESSES. weapon charging didn't work at all in Megaman ZX, which means the button wasn't been detected as held.
Squall-Leonhart is offline   Reply With Quote
Old October 23rd, 2007   #82 (permalink)
Rockman fan
 
RockmanForte's Avatar
 
Join Date: May 2002
Location: Earth!
Posts: 3,729
I guess he will need to release the next version again.... >.>
__________________


CASE: EagleTech Sidewinder Gaming Tower Case w/420W Power Supply Black
OS: Windows XP Professional X64
CPU: Intel core 2 Duo Processor E8400 (2x 3.0GHz/6MB L2 Cache/1333FSB)
Processor Cooling: Thermaltake V1 CPU Cooling Fan System Kit Silent & Overclocking Proof
Graphics Card: NVIDIA GeForce 8800GT 512MB w/DVI + TV Out Video
Memory: 2048GB [1024GB X2] DDR2-800 PC6400 Memory Module Corsair-Value or Major Brand
Sound Card: 3D Premium Surround Sound Onboard
RockmanForte is offline   Reply With Quote
Old October 23rd, 2007   #83 (permalink)
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 4,188
lol, done some further testing

Controls
Xbox S-type using XBCD 0.2.6
Gravis Tiltpad (damned if i know the driver)

Win9x compatibility - X works, Y doesn't
WinNT (2k compatibility and XP) - Y works, X Doesn't.
safe mode - all buttons work, but polling is way to slow.
Squall-Leonhart is offline   Reply With Quote
Old October 23rd, 2007   #84 (permalink)
Emu author
 
mudlord's Avatar
 
Join Date: Feb 2007
Location: Wuzzleberg
Posts: 1,362
Found a bug:

* SDL is meant to be loaded in the main process/thread (DllMain), not when loading plugin information.

As for the polling issues, will look into that...
mudlord is offline   Reply With Quote
Old October 23rd, 2007   #85 (permalink)
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 4,188
btw, the second one you sent me,. the small one, wouldn't work at all
Squall-Leonhart is offline   Reply With Quote
Old October 23rd, 2007   #86 (permalink)
Emu author
 
mudlord's Avatar
 
Join Date: Feb 2007
Location: Wuzzleberg
Posts: 1,362
Yah, I know :P

You told me yesterday
mudlord is offline   Reply With Quote
Old October 23rd, 2007   #87 (permalink)
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 4,188
lol i did?

i told you the first one acted like al buttons were pressed at once...

lol maybe i offline messaged it :\

just for kicks i booted up Dosbox and plays tyrian with my controller :P using the buttons that just won't work in ideas
Squall-Leonhart is offline   Reply With Quote
Old October 23rd, 2007   #88 (permalink)
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 297
NHerve' why do you also read the state of the keyboard? iDeaS fills *value with current status of keyboard. GetKeyboardState(str);
Lino is offline   Reply With Quote
Old October 23rd, 2007   #89 (permalink)
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 4,188
i saw that as well, i was going to mention it to mudlord, its probably why the keyboard controls act up when the plugin is enabled. it also, reads mouse input,. well, middle clicks anyway.
Squall-Leonhart is offline   Reply With Quote
Old October 23rd, 2007   #90 (permalink)
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 297
Strange i have received an email by emuforum but I don't succeed in seeing it.

Quote:
mudlord has just replied to a thread you have subscribed to entitled - DsPad plugin !!! - in the iDeaS Discussion forum of Emuforums.com.

This thread is located at:
http://forums.ngemu.com/ideas-discus...-new-post.html

Here is the message that has just been posted:
***************
Lino, I was wondering the same thing

It seems logical to me, if it was for a pure controller plugin, it will use controller only calls. Mixing calls doesn't seem to be nice, and anyway, SDL has capabilities for handling keyboard input anyway, which removes the need to do it manually by using keyboard hooks or whathaveyou in Win32.

***************


There may also be other replies, but you will not receive any more notifications until you visit the forum again.

All the best,
Emuforums.com
GetKeyboardState(str) it is a standard api, it isnt SDL.

I knew that the SDL had the initialization for every layer, graphics, sound etc etc.
Lino is offline   Reply With Quote
Old October 23rd, 2007   #91 (permalink)
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 4,188
yeah, the problem is, that the emulator already gets the keyboard, and having the plugin also get it, can cause conflicts.

as it is, i would prefer to see the emulator internally support dinput controls, rather then handling it via a plugin. otherwise, drop the internal controls all together and just handle it all via plugin. your bound to come across conflicts using both methods at some time or another.
Squall-Leonhart is offline   Reply With Quote
Old October 23rd, 2007   #92 (permalink)
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 297
I havent understood or Im not clear, why DsPad calls GetKeyboardState(str)? I havent tested the plugin, now im very busy, but i have seen the code and i found very strange this call.
Lino is offline   Reply With Quote
Old October 23rd, 2007   #93 (permalink)
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 4,188
i would like to know as well.

Nherve'?
Squall-Leonhart is offline   Reply With Quote
Old October 23rd, 2007   #94 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 413
mudlord : I tried to init SDL in dllmain, the plugin does not init.
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old October 23rd, 2007   #95 (permalink)
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 4,188
you may not be doing it correctly, as we were able to init the plugin fine.
Squall-Leonhart is offline   Reply With Quote
Old October 23rd, 2007   #96 (permalink)
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 297
Quote:
Originally Posted by NHervé View Post
mudlord : I tried to init SDL in dllmain, the plugin does not init.
You can try in SetInfoFunc when the PIS_ENABLEMASK is valid.
Lino is offline   Reply With Quote
Old October 24th, 2007   #97 (permalink)
Emu author
 
mudlord's Avatar
 
Join Date: Feb 2007
Location: Wuzzleberg
Posts: 1,362
Code:
BOOL APIENTRY DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID Reserved){
	switch(dwReason){
	case DLL_PROCESS_ATTACH:
		hInst=hInstance;
                OpenSDL();
		LoadConf();
		return TRUE;
	case DLL_PROCESS_DETACH:
		CloseSDL();
		return TRUE;
	}
	return FALSE;
So, if I'm not mistaken, the plugin won't work for you if SDL is loaded correctly??????
mudlord is offline   Reply With Quote
Old October 24th, 2007   #98 (permalink)
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 4,188
Nherve, why is it that at one point the source specifies i=IDC_EBX but then the next specifies i=IDC_BX
Squall-Leonhart is offline   Reply With Quote
Old October 24th, 2007   #99 (permalink)
Registered User
 
Join Date: Nov 2006
Location: Buenos Aires
Posts: 20
Congratulations NHervé, the plugin works perfect
VisitntX is offline   Reply With Quote
Old October 24th, 2007   #100 (permalink)
Rockman fan
 
RockmanForte's Avatar
 
Join Date: May 2002
Location: Earth!
Posts: 3,729
Quote:
Originally Posted by VisitntX View Post
Congratulations NHervé, the plugin works perfect
Actually, you need to recheck it just to make sure because it works perfect but if you try any buttons like Megaman Star Force that asked to press X button for Save.. No responsive. And you can check anything else... I don't think it's perfectly... yet.
__________________


CASE: EagleTech Sidewinder Gaming Tower Case w/420W Power Supply Black
OS: Windows XP Professional X64
CPU: Intel core 2 Duo Processor E8400 (2x 3.0GHz/6MB L2 Cache/1333FSB)
Processor Cooling: Thermaltake V1 CPU Cooling Fan System Kit Silent & Overclocking Proof
Graphics Card: NVIDIA GeForce 8800GT 512MB w/DVI + TV Out Video
Memory: 2048GB [1024GB X2] DDR2-800 PC6400 Memory Module Corsair-Value or Major Brand
Sound Card: 3D Premium Surround Sound Onboard
RockmanForte is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 16:28.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5