Re: dinput: Convert keyboard buffer from internal data format to user data format

2008-05-14 Thread Vitaliy Margolen
Sergey Khodych wrote: >> To reply to myself. I've missed the fact that if the requested format >> is the >> same as Wine's internal format it will be a simple memcpy. I did not >> want to >> penalize most dinput applications that just use default keyboard >> format (array >> of 256 bytes). >> >

Re: dinput: Convert keyboard buffer from internal data format to user data format

2008-05-14 Thread Sergey Khodych
> To reply to myself. I've missed the fact that if the requested format is > the > same as Wine's internal format it will be a simple memcpy. I did not > want to > penalize most dinput applications that just use default keyboard format > (array > of 256 bytes). > What do you think about using c

Re: dinput: Convert keyboard buffer from internal data format to user data format

2008-05-14 Thread Vitaliy Margolen
Vitaliy Margolen wrote: > Sergey Khodych wrote: >>> Any particular reason for this? Do you have a program that sets different >>> data format? The reason I ask - copying 256 bytes is much faster then >>> iterating over the whole data format and copying one byte at a time. >>> >> A possibility of

Re: dinput: Convert keyboard buffer from internal data format to user data format

2008-04-14 Thread Vitaliy Margolen
Sergey Khodych wrote: >> Any particular reason for this? Do you have a program that sets different >> data format? The reason I ask - copying 256 bytes is much faster then >> iterating over the whole data format and copying one byte at a time. >> > A possibility of using custom data format, for a

Re: dinput: Convert keyboard buffer from internal data format to user data format

2008-04-14 Thread Sergey Khodych
A possibility of using custom data format, for any type of devices, is described in DirectX SDK documentation. For example Monolith's F.E.A.R. use this method. > Any particular reason for this? Do you have a program that sets different > data format? The reason I ask - copying 256 bytes is much

Re: dinput: Convert keyboard buffer from internal data format to user data format

2008-04-13 Thread Vitaliy Margolen
Sergey Khodych wrote: > > > Any particular reason for this? Do you have a program that sets different data format? The reason I ask - copying 256 bytes is much faster then iterating over the whole data format and copying one byte at a time. Vitaliy.