View Single Post
  #7   Spotlight this post!  
Unread 26-02-2005, 17:15
mv.aboyd mv.aboyd is offline
Registered User
#1458
 
Join Date: Jan 2005
Location: Danville
Posts: 10
mv.aboyd is an unknown quantity at this point
Re: using a ps2 controller

no you cant buy an adapter you have to do everthing yourself. so same money and dont buy it. If you really want to conver it you have to take apart the controller and desolder everthing. The analog joysticks operate at 10 ohm so the range is almost imposible to drive with, so you have to put a 37k restior or somthng like that and hook up the the varible petentiometer to the right db15 pins and program the new joystick with a range of ten somthing like this

pmw05 = pmw07 = values[p1_x % 256];
pmw06 = pmw08 = values[p1_y % 256];

int values[256] = {
/* 0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 16 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 32 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 48 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 64 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 80 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 96 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 112 */ 0, 0, 0, 0, 20, 38, 55, 69, 83, 94,104,112,118,123,126,127,
/* 128 */ 128,132,140,152,170,192,221,255,255,255,255,255,25 5,255,255,255,
/* 144 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 160 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 176 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 192 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 208 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 224 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 240 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255
};
motA = values[p1_x % 256];
motB = values[pl_y % 256];


This is very very hard