Emuforums.com

Go Back   Emuforums.com > Handheld Emulation > Nintendo Handhelds > iDeaS Discussion
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read

Reply
 
Thread Tools Display Modes
Old October 23rd, 2007, 04:18   #81
Squall-Leonhart
Banned
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Sydney, Australia
Posts: 23,270
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

Advertisement [Remove Advertisement]

Old October 23rd, 2007, 05:03   #82
RockmanForte
Rockman fan
 
Join Date: May 2002
Location: Earth!
Posts: 5,285
I guess he will need to release the next version again.... >.>
RockmanForte is offline   Reply With Quote

Old October 23rd, 2007, 06:21   #83
Squall-Leonhart
Banned
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Sydney, Australia
Posts: 23,270
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, 06:35   #84
mudlord
Banned
 
Join Date: Feb 2007
Location: Lost.
Posts: 1,761
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, 07:34   #85
Squall-Leonhart
Banned
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Sydney, Australia
Posts: 23,270
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, 07:36   #86
mudlord
Banned
 
Join Date: Feb 2007
Location: Lost.
Posts: 1,761
Yah, I know :P

You told me yesterday
mudlord is offline   Reply With Quote

Old October 23rd, 2007, 07:42   #87
Squall-Leonhart
Banned
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Sydney, Australia
Posts: 23,270
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, 08:22   #88
Lino
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 334
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, 08:49   #89
Squall-Leonhart
Banned
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Sydney, Australia
Posts: 23,270
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, 13:04   #90
Lino
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 334
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, 13:37   #91
Squall-Leonhart
Banned
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Sydney, Australia
Posts: 23,270
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, 15:46   #92
Lino
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 334
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, 16:39   #93
Squall-Leonhart
Banned
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Sydney, Australia
Posts: 23,270
i would like to know as well.

Nherve'?
Squall-Leonhart is offline   Reply With Quote

Old October 23rd, 2007, 16:49   #94
Luigi__
Formerly NHervé
 
Luigi__'s Avatar
 
Join Date: Jul 2007
Location: Peach__'s castle
Posts: 818
mudlord : I tried to init SDL in dllmain, the plugin does not init.
__________________
Luigi__'s website - now open! -- If you're wondering where Mario__ is, he is currently saving Peach__ once again.
Luigi__ is offline   Reply With Quote

Old October 23rd, 2007, 16:58   #95
Squall-Leonhart
Banned
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Sydney, Australia
Posts: 23,270
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, 17:19   #96
Lino
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 334
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, 11:08   #97
mudlord
Banned
 
Join Date: Feb 2007
Location: Lost.
Posts: 1,761
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, 12:21   #98
Squall-Leonhart
Banned
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Sydney, Australia
Posts: 23,270
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, 17:42   #99
VisitntX
Registered User
 
Join Date: Nov 2006
Location: Buenos Aires
Posts: 25
Congratulations NHervé, the plugin works perfect
VisitntX is offline   Reply With Quote

Old October 24th, 2007, 18:44   #100
RockmanForte
Rockman fan
 
Join Date: May 2002
Location: Earth!
Posts: 5,285
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.
RockmanForte is offline   Reply With Quote

Reply

Tags
dspad, ideas, plugins

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

Forum Jump

All times are GMT +1. The time now is 05:54.

© 2006 - 2012 Emu Forums | About Emu Forums | Advertisers | Investors | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.