| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9
Comments:
<0> hah <1> people just don't think about security well <1> not that i'm an expert on the subject <1> but i at least have my head on straight <1> <cue gay joke> <0> u r gaey!!1 <1> pfft <1> that's not creative <1> you could have commented about how the rest of my body isn't straight <0> I'm well aware <1> YOU FAIL <0> but I'm multitaksing <0> and have a miniscule amount of resources ***igned to you <1> liar <1> i am the center of the known universe <1> i demand more attention
<0> I believe provides services that might be of ***istance <0> ergh <0> believe JB provides <1> i didn't say ***ual attention <0> please. <0> we know what you meant <1> well, he is a ***y beast <1> for a 4 foot tall, hairy, box dwelling troll <2> hi there <2> i have two types : KeyCode dans KeyState... <2> i wish to have some KeyCode binded to KeyStates <2> i thought i should use multi_set to store that "mapping" but i'm not sure that it's the right choice <2> what do you think? <3> Depends entirely on the nature of the binding. <2> well it simple , looks like that : <2> (KEY_SPACE,DOWN),(KEY_ENTER,DOWN),(KEY_F,UP) <2> maybe it's not clear enough... <2> i want to put keys with a state in the list or map or etc <3> That just looks like a collection, not an ***ociation. What, if anything, are you trying to map to? Mapping is a relation: X to Y. <2> well, that's right i didnt use the right word <2> what i want is to have a set of keycodes that have states <3> So what are you actually trying to do? Map X to Y? Or just build a collection of X - strings, ints, whatever? <2> i don't care if a key have two states <2> map x to y <2> than x is the state i gess <2> guess <2> later, i check the list of binding, if all the keys are in the states that i have in it i will send an event <2> it's not a problem if a key have two states in the bindings <4> mymap[KEY_SPACE] = DOWN; mymap[KEY_ENTER] = DOWN; // are you talking about something like this? <3> Still not quite clear. Okay, let's say you have a key code - F1, for example. It has ***ociated states, such as UP, DOWN, ALT, whatever. You'tr just trying to keep track of whether the given keypress has ALT or SHIFT, etc? <2> YUY0x7>hmm yes but in your case you cannot have multiple states to the same keycode <3> Like, you want to record if I pressedjust F1, or SHIFT-F1? Or do you need to do something more complex? <5> shouldn't pair(x,y); work without giving the template arguments? <4> you want to have mymap[KEY_SPACE] = DOWN; and mymap[KEY_SPACE] = UP; ? <4> sk8ing, nope <4> make_pair <2> it's not recording <2> YUY0x7>yes <4> may i ask why? <5> why not? template <cl*** T> void f(T x) { } f("a"); would work fine <5> so, what's the trick? <6> that's a function <6> pair is a cl*** <4> sk8ing, cl*** constructors don't deduce the cl***' template params <5> I see, thanks <5> I thought it's a function <4> no, make_pair is a function, pair is a cl*** template <2> I have a cl*** InputCombo that have an EventGenerator (an object that will generate a specific Event) <2> in the InputCombo i want to put some keys and their state <2> each cycle i check : <2> if the keys that i put in the INputCombo are all in the state i put with each key, then i execute the EventGenerator <3> Klaim: Put it this way. Would this work: struct { int code; int state; } keypress; ? <2> (that is a functor) <2> Bitrot_> then put it in a list? <3> Klaim: I'm just trying to figure out what you're trying to ***ociate. If it's just that you need to record keystrokes along with, say, shift state, then wouldn't the simple struct be the easiest approach to "***ociating" the state with the key> <2> yeah that's right, then in this case i should use std::list<keypress> <3> You could, or a vector. <4> so it's kind of a queue of keypress events? <2> hmm i don't think so : it will have to be checked each cycle <3> No idea what you mean by that. <2> well in my main loop^
<2> i will have to check each InputCombo i have, then go through each list<keypress> to check if the states are like the real state of the keyboard(or mouse) <2> then, as i have to go through the container of the keypresses, i think std::list should be the faster <3> So, what, you're trying to store something like the entire state of the keyboard, then check something like if ( keyboard[keycode] == state ) { ... } > <2> not the entire state <3> s/>/? <2> only some keys and states and i compare it with the real state of keyboard and mouse <2> example : <2> In my InputCombo , i have an eventGenerator that will launch a SpecialAttackEvent if i call it's () operator <2> and i have a std::list< struct{KeyCode,KeyState} > <2> i put those in this list : <2> (KEY_SHIFT,PRESSED) , (KEY_SPACE,UP) <2> then each cycle of my main loop, i'll check those two <4> Klaim, iterating through the list should be as fast as iterating through a vector.. and during some tests in vc++8, i noticed vector being actually faster.. but if you're inserting very frequently, a list would be better <2> if on the real keyboard the shift key is pressed wile the space key as just been released, the SpecialAttackEvent will be sent : a special attack occurs <2> YUY0x7> ok, i should check that in my specific case when i'll be on optimisation phase <2> thanks <7> hello <7> http://rafb.net/paste/results/z7hKEh58.html <7> please help me <7> i don't understand why my i->eval has not the good value <7> is somebody here ? <8> Ask on #C, this is #C++ <7> i do but no response <7> and c and c++ is nearly the same, no ? <3> Somewhat, yes, but there are very significant and often subtle differences, too. <8> The reason nobody reacts is because you are too lazy to ask a question that can be answered. <8> I don't feel like lazy people, certainly not with C (I'll save my time for people who ask C++ related questions). <8> don't feel like helping* <7> oky no problem :) <8> Lemme just suggest you write code in English... <8> (so the rest of the world can understand it too) <9> hello guys. could you pls help me with a boot problem? i have 3 windows versions installed on my hdd on the first 3 partitions and i used sys.com from a win98 boot disk on the 4th partition, so if the nt boot loader knows how to load it, i should have a command prompt. the problem is this: i added a line in boot.ini like G:\="test" and when i select that in the boot menu it resets, does anyone know how to solve this? <9> this is how my boot.ini looks like: http://www.nomorepasting.com/paste.php?pasteID=60697 <10> http://www.theagitator.com/archives/026461.php#026461 <10> time really doesn't go by fast at this point in the day. <10> http://www.foxnews.com/story/0,2933,191362,00.html <11> guess c-bot doesn't hang out here no more? <12> Mental illness like that should == death and no offspring. <6> apparently we're sending this to monster.com and some "local" newspapers tomorrow: Microsoft .NET Developer needed. Minimum of 6 years software development. Experience with: Microsoft.NET; Web applications and services; search engines; XML; SQL; C#; C++. Must be able to work constructively in teams. Experience in the healthcare industry is a plus. <13> You have to be constructive? Damn. <6> no, YOU have to be constructive, I just get to watch, lol <1> that's me except for the part about healthcare and constructive <6> the healthcare is just a plus, not a requirement <6> maybe I should add: Must be able to withstand cold, snow, and mountains. <13> Has .Net been around for 6 years already? <13> .NET <6> it doesn't say 6 years .NET experience <13> Oh, misread. nm. <1> i have 6 years .NET experience though <1> pwn3d <6> yeah, but you don't like the NW, and altitude <1> oh <1> i like seattle <1> wife didn't <1> i can't stand cold though <1> rdragon, since you have the nice new job, by me a macbook pro you cheap bastard <13> peterhu: What are you always so bitter about, anyway? <6> <sigh> I never seem to be able to get this boost::bind stuff working right <13> peterhu: Life is all butterflies and rainbows once your job doesn't ****. <1> pfft what job doesn't **** <10> the one where you're self employed <10> I wonder how hard it is to get a loan from a bank to start a business. <1> pfft what *real* job doesn't **** <4> vawjrwrk, what's the problem? <6> for(vector<string>::iterator it = Global.Extensions.begin(); it != Global.Extensions.end(); ++it) <6> { <6> trim_right_if(*it, is_any_of("\\")); <6> } <6> I wanted to write that using for_each nad bind <6> but... not gonna play <6> it appears that the boost string_algo stuff doesn't play w/ bind <4> for_each(b, e, bind(&trim_right_if, _1, is_any_of("\\"))); // something like this? <13> Noidea: For the record, being self-employed can **** too.
Return to
#c++ or Go to some related
logs:
ubundu vnc liquid club san gwann
#AllNiteCafe #java badi nikik que dexterh #apache how to fix grub error 5 in debian wher do turkeys live
ubuntu xchat espaƱol
|
|